1
0
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:
Allan Jardine 2014-03-04 08:52:53 +00:00
parent 876eb29b9b
commit 39828e8bab
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
dbd08731ff5017c85be08d79d7c764bcea02c64a
6e5c2b6800f6a3014f33455491f2186cf00b0b82

View File

@ -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