mirror of
https://github.com/DataTables/DataTables.git
synced 2024-12-01 13:24:10 +01:00
9cc3be030f
- 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. |
||
---|---|---|
.. | ||
css | ||
images | ||
js | ||
unit_testing |