933834c4a6
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
11 lines
330 B
CoffeeScript
11 lines
330 B
CoffeeScript
#= require behaviors/autosize
|
|
|
|
describe 'Autosize behavior', ->
|
|
beforeEach ->
|
|
fixture.set('<textarea class="js-autosize" style="resize: vertical"></textarea>')
|
|
|
|
it 'does not overwrite the resize property', ->
|
|
load()
|
|
expect($('textarea')).toHaveCss(resize: 'vertical')
|
|
|
|
load = -> $(document).trigger('page:load')
|