Fixed header is not aligning correctly on scroll

Fixed header is not aligning correctly on scroll

regeko3436regeko3436 Posts: 2Questions: 0Answers: 0

Hey @allan,

The fixed header is not aligning correctly with table tbody columns on scroll.

Link to test case: https://live.datatables.net/yizexika/2

Replies

  • allanallan Posts: 63,434Questions: 1Answers: 10,458 Site admin

    Remove the width="200": https://live.datatables.net/yizexika/3/edit . They were not rendered as 200px anyway.

    Allan

  • regeko3436regeko3436 Posts: 2Questions: 0Answers: 0

    @allan, it only happened after upgrading to DataTables 2.0.2, in DataTables 1.13.10 it was working fine with 200px

  • allanallan Posts: 63,434Questions: 1Answers: 10,458 Site admin

    DataTables 2 is a bit more strict. I've changed how the column width calculations in DataTables work, to make them more reliable, but it does mean that a misconfiguration can upset things a bit more than before.

    Allan

Sign In or Register to comment.