MDL-61451 message_area: core/auto_rows remove set height to 1px
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user