MDL-61451 message_area: core/auto_rows remove set height to 1px

This commit is contained in:
cescobedo
2018-03-16 13:06:02 +01:00
parent b63a3b04b1
commit 00a7511580
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -49,9 +49,6 @@ define(['jquery'], function($) {
var innerHeight = element.innerHeight();
var padding = innerHeight - height;
// Set height to 1ox to force scroll height to calculate correctly.
element.height('1px');
var scrollHeight = element[0].scrollHeight;
var rows = (scrollHeight - padding) / (height / currentRows);