Skip to content

Commit

Permalink
IE8: surrounding elements do not repaint to reflect new textarea heig…
Browse files Browse the repository at this point in the history
…ht if found nested inside inline-block
  • Loading branch information
hnguyen08 committed Oct 30, 2014
1 parent 3e97311 commit 4593bed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jquery.autosize.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@

if (original !== height) {
ta.style.height = height + 'px';

// Trigger a repaint for IE8 for when ta is nested 2 or more levels inside an inline-block
mirror.className = mirror.className;

if (callback) {
options.callback.call(ta,ta);
}
Expand Down

0 comments on commit 4593bed

Please sign in to comment.