Skip to content

Commit

Permalink
fix(input): fix textarea appearance on IE
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Jan 11, 2015
1 parent 39c2c4b commit 9263aac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/input/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ function inputTextareaDirective($mdUtil, $window) {
});

function growTextarea(value) {
node.style.height = "auto";
node.style.minHeight = "auto";
var line = node.scrollHeight - node.offsetHeight;
node.scrollTop = 0;
var height = node.offsetHeight + (line > 0 ? line : 0);
node.style.height = height + 'px';
node.style.minHeight = height + 'px';

return value; // for $formatter/$parser
}
Expand Down

0 comments on commit 9263aac

Please sign in to comment.