From 33f7ab9c2567bf5546446845e22c5f27e58ce376 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Wed, 28 Nov 2018 00:15:31 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Reset=20body=20height=20b?= =?UTF-8?q?efore=20setting=20the=20bodyStyle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In case when there are very less number of rows, the height will adapt to a lower value. But in the next refresh the number of rows could increase so the body height should be reset to it's original value --- src/style.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/style.js b/src/style.js index 5b185d9..071eb83 100644 --- a/src/style.js +++ b/src/style.js @@ -287,6 +287,9 @@ export default class Style { width: width + 'px' }); + // remove the body height, so that it resets to it's original + $.removeStyle(this.bodyScrollable, 'height'); + // when there are less rows than the container // adapt the container height const height = $.getStyle(this.bodyScrollable, 'height');