mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
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
12 lines
330 B
CoffeeScript
12 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')
|