-
- Downloads
Merge branch 'rs-relax-autosize' into 'master'
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. We've disabled this behavior in the vendored library and added a spec to prevent a regression during an upgrade. Second, we detect (as best we can) 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 See merge request !2653
No related branches found
No related tags found
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