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:
parent
89f13b530a
commit
33f7ab9c25
@ -287,6 +287,9 @@ export default class Style {
|
|||||||
width: width + 'px'
|
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
|
// when there are less rows than the container
|
||||||
// adapt the container height
|
// adapt the container height
|
||||||
const height = $.getStyle(this.bodyScrollable, 'height');
|
const height = $.getStyle(this.bodyScrollable, 'height');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user