diff options
author | Bryce Johnson <bryce@gitlab.com> | 2017-06-28 15:12:40 -0400 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2017-06-30 15:53:19 -0400 |
commit | c69331cc6680b1328033bd13188c3b3c0ab7c59a (patch) | |
tree | 5525cfe1f8cbf489c9816267961ed86c182e340b | |
parent | a704f9e5803e833d00f3abcf1d68eac9b9701653 (diff) | |
download | gitlab-ce-autosize-js-perf.tar.gz |
Remove unneeded autosize js config.autosize-js-perf
-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'); }); |