mirror of
https://github.com/DataTables/DataTables.git
synced 2024-11-29 11:24:10 +01:00
a2948e4c1e
Fix: Table could overscroll if `dt-init data` is used to populate the table This is a fairly significant change to how DataTables operates for the scrolling width calculations and primarily is due to a simplification with the use of `clientWidth` to get the scrolling container width. Rather than getting the offsetWidth and then removing the scrollbar width if required the `clientWidth` will give us the value directly. With the scrollbar width already accounted for the scrolling draw code can be updated to not need to account for it itself. Finally, when using the `data` property to add data to the table we need to recalculate the column widths after the first draw, just like with Ajax loaded data, otherwise the data added won't be taken into account and we can get an error in the scrolling. |
||
---|---|---|
.. | ||
css | ||
images | ||
js | ||
unit_testing |