fix: 🐛 Reset body height before setting the bodyStyle

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
This commit is contained in:
Faris Ansari 2018-11-28 00:15:31 +05:30
parent 89f13b530a
commit 33f7ab9c25

View File

@ -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');