-
- Downloads
Allow manual resize of js-autosize textareas
First, the autosize library was being too controlling and removed the `resize` property from any elements to which it was attached, removing the drag handle. Second, we detect when the user manually resizes an autosize textarea, and then remove the autosize behavior from it and increase its max-height. This should allow for the best of both worlds. Closes #12832
Showing
- app/assets/javascripts/behaviors/autosize.js.coffee 19 additions, 1 deletionapp/assets/javascripts/behaviors/autosize.js.coffee
- app/assets/stylesheets/framework/markdown_area.scss 1 addition, 1 deletionapp/assets/stylesheets/framework/markdown_area.scss
- app/assets/stylesheets/pages/note_form.scss 1 addition, 1 deletionapp/assets/stylesheets/pages/note_form.scss
- spec/javascripts/behaviors/autosize_spec.js.coffee 11 additions, 0 deletionsspec/javascripts/behaviors/autosize_spec.js.coffee
- vendor/assets/javascripts/jquery.ba-resize.js 246 additions, 0 deletionsvendor/assets/javascripts/jquery.ba-resize.js
Please register or sign in to comment