Skip to content

Commit

Permalink
Add !important to height, to solve problem with UIkit.
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Nov 18, 2013
1 parent 0e4f407 commit 372266e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.autosize.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
// The mirror width must exactly match the textarea width, so using getBoundingClientRect because it doesn't round the sub-pixel value.
function setWidth() {
var style, width;

if ('getComputedStyle' in window) {
style = window.getComputedStyle(ta, null);
width = ta.getBoundingClientRect().width;
Expand Down Expand Up @@ -176,7 +176,7 @@
height += boxOffset;

if (original !== height) {
ta.style.height = height + 'px';
ta.style.height = height + 'px !important';
if (callback) {
options.callback.call(ta,ta);
}
Expand Down

0 comments on commit 372266e

Please sign in to comment.