From 9263aacc9b140f426374150cd9b3e4d6c4ec51dd Mon Sep 17 00:00:00 2001 From: Patryk Kopycinski Date: Sun, 11 Jan 2015 21:38:40 +0100 Subject: [PATCH] fix(input): fix textarea appearance on IE --- src/components/input/input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/input/input.js b/src/components/input/input.js index 6cb2ded2c1f..833b52d8100 100644 --- a/src/components/input/input.js +++ b/src/components/input/input.js @@ -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 }