diff options
-rw-r--r-- | app/assets/javascripts/behaviors/autosize.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/app/assets/javascripts/behaviors/autosize.js b/app/assets/javascripts/behaviors/autosize.js index 3bea460dcc6..30dffecf89f 100644 --- a/app/assets/javascripts/behaviors/autosize.js +++ b/app/assets/javascripts/behaviors/autosize.js @@ -3,21 +3,5 @@ import autosize from 'vendor/autosize'; $(() => { const $fields = $('.js-autosize'); - $fields.on('autosize:resized', function resized() { - const $field = $(this); - $field.data('height', $field.outerHeight()); - }); - - $fields.on('resize.autosize', function resize() { - const $field = $(this); - if ($field.data('height') !== $field.outerHeight()) { - $field.data('height', $field.outerHeight()); - autosize.destroy($field); - $field.css('max-height', window.outerHeight); - } - }); - - autosize($fields); autosize.update($fields); - $fields.css('resize', 'vertical'); }); |