mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Fix: Incorrect use of offsetHeight for scroll collapse
This commit is contained in:
parent
876eb29b9b
commit
39828e8bab
@ -1 +1 @@
|
||||
dbd08731ff5017c85be08d79d7c764bcea02c64a
|
||||
6e5c2b6800f6a3014f33455491f2186cf00b0b82
|
||||
|
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -3561,7 +3561,7 @@
|
||||
// will end up forcing the scrollbar to appear, making our measurements wrong for when we
|
||||
// then hide it (end of this function), so add the header height to the body scroller.
|
||||
if ( scroll.bCollapse && scrollY !== "" ) {
|
||||
divBodyStyle.height = (divBody.offsetHeight + header[0].offsetHeight)+"px";
|
||||
divBodyStyle.height = (divBody[0].offsetHeight + header[0].offsetHeight)+"px";
|
||||
}
|
||||
|
||||
// Size the table as a whole
|
||||
|
Loading…
x
Reference in New Issue
Block a user