src/js/plugins/input-number.js
function inputNumberResize($target) {
    var $inputNumber = $target.closest('.input-number')
    if ($inputNumber.hasClass('input-number-adaptive')) {
      // width = padding (12px + 32px) + number of characters
      if (!$inputNumber.hasClass('input-number-percentage')) {
        $target.css('width', 'calc(44px + ' + $target.val().length + 'ch)')
        if (isIe())
          $target.css('width', 'calc(44px + (1.5 * ' + $target.val().length + 'ch))')
      }
      if ($inputNumber.hasClass('input-number-currency')) {
        $target.css('width', 'calc(40px + 44px + ' + $target.val().length + 'ch)')
        if (isIe())
          $target.css('width', 'calc(40px + 44px + (1.5 * ' + $target.val().length + 'ch))')
      }
    }
  }
function inputNumberResize($target) {
    var $inputNumber = $target.closest('.input-number')
    if ($inputNumber.hasClass('input-number-adaptive')) {
      // width = padding (12px + 32px) + number of characters
      if (!$inputNumber.hasClass('input-number-percentage')) {
        $target.css('width', 'calc(44px + ' + $target.val().length + 'ch)')
        if (isIe())
          $target.css('width', 'calc(44px + (1.5 * ' + $target.val().length + 'ch))')
      }
      if ($inputNumber.hasClass('input-number-currency')) {
        $target.css('width', 'calc(40px + 44px + ' + $target.val().length + 'ch)')
        if (isIe())
          $target.css('width', 'calc(40px + 44px + (1.5 * ' + $target.val().length + 'ch))')
      }
    }
  }
function inputNumberResize ( $target ) { var $inputNumber = $target . closest ( '.input-number' ) if ( $inputNumber . hasClass ( 'input-number-adaptive' ) ) { // width = padding (12px + 32px) + number of characters if ( ! $inputNumber . hasClass ( 'input-number-percentage' ) ) { $target . css ( 'width' , 'calc(44px + ' + $target . val ( ) . length + 'ch)' ) if ( isIe ( ) ) $target . css ( 'width' , 'calc(44px + (1.5 * ' + $target . val ( ) . length + 'ch))' ) } if ( $inputNumber . hasClass ( 'input-number-currency' ) ) { $target . css ( 'width' , 'calc(40px + 44px + ' + $target . val ( ) . length + 'ch)' ) if ( isIe ( ) ) $target . css ( 'width' , 'calc(40px + 44px + (1.5 * ' + $target . val ( ) . length + 'ch))' ) } } }
resize function
resize function