We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0195d45 commit 2ddb3fdCopy full SHA for 2ddb3fd
domino-ui/src/main/java/org/dominokit/domino/ui/datatable/plugins/BodyScrollPlugin.java
@@ -41,9 +41,10 @@ public void onBodyAdded(DataTable<T> dataTable) {
41
}
42
int offsetHeight = new Double(scrollElement.offsetHeight).intValue();
43
int scrollHeight = new Double(scrollElement.scrollHeight).intValue();
44
+ int clientHeight = new Double(scrollElement.clientHeight).intValue();
45
46
if (JsMath.abs(offsetHeight) + JsMath.abs(scrollTop)
- == new Double(scrollHeight).intValue()) {
47
+ == new Double(scrollHeight + (offsetHeight - clientHeight)).intValue()) {
48
dataTable.fireTableEvent(new BodyScrollEvent(ScrollPosition.BOTTOM));
49
50
});
0 commit comments