mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-20 18:54:15 +01:00
- Setting `box-sizing: border-box;` for table cells would cause DataTables to incorrectly calculate the size of the element when applying the scrolling draw. This is because jQuery's $().width() always returns the content width (taking into account box-sizing). - One possible fix was to detect the box model used and switch between width() and outerWidth(), but a much better fix is to use $().css('width') as this does take into account the box-model and allows DataTables to draw the scrolling table columns correctly, regardless of the box model. It should actually also improve performance, since jQuery doesn't need to look the box model up itself. - This fixes issue #157