This website requires JavaScript.
Explore
Help
Register
Sign In
rooty
/
DataTables
Watch
1
Star
0
Fork
0
You've already forked DataTables
mirror of
https://github.com/DataTables/DataTables.git
synced
2025-02-07 05:54:15 +01:00
Code
Issues
Releases
Activity
DataTables
/
.datatables-commit-sync
2 lines
41 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Fix: Calculation for horizontal scroll bar adjustment when the `dt-init scrollCollapse` parameter is set could be incorrect when the standard height exceeds the window height. - This is an interesting one, and I suspect a bit of an edge case in the browsers - what is happening is that the window is going from having a scrollbar to not having a scrollbar when the scrolling viewport is collapsed. This causes the browser to show the scrollbars in the viewport for an instant, even although they aren't actually required. If the height of the viewport is 53px and you up it to 80 so there are no scrollbars and reduce it back to 53 the scrollbars are gone! The browser must be stopping a race condition once the scrollbars are shown. - The fix is to use `max-height` for the scrolling container if the scroll collapse is set and `height` otherwise. The browser native methods makes the code _much_ easier to work with, more performant and easier to understand.
2015-08-10 17:47:34 +01:00
3cb4b4847de81adb021ff82f235bc0343dd5ea16
Reference in New Issue
Copy Permalink