Skip to content

Commit

Permalink
Revert "Add !important to height, to solve problem with UIkit."
Browse files Browse the repository at this point in the history
This reverts commit 372266e.
  • Loading branch information
jackmoore committed Nov 18, 2013
1 parent b60dc7f commit 462b721
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 !important';
ta.style.height = height + 'px';
if (callback) {
options.callback.call(ta,ta);
}
Expand Down

0 comments on commit 462b721

Please sign in to comment.