How can i adjust columns when i am using "ScrollY".

How can i adjust columns when i am using "ScrollY".

tamal16tamal16 Posts: 2Questions: 1Answers: 0

I have a sidebar. When I am toggling my sidebar the "dataTables_scrollHead" and "dataTables_scrollBody" columns are not aligned properly.

Answers

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    Sounds like you are using DataTables 1.x? That is no longer supported - however, if you link to a page showing the issue, I can take a quick look and see if there is something obvious.

    Allan

  • tamal16tamal16 Posts: 2Questions: 1Answers: 0

    The issue was resolved using
    $('.dataTables_scrollHeadInner, .dataTable').css({'width': '100%'}); setTimeout(function () { $(window).trigger('resize'); // Trigger window resize event }, 300);

Sign In or Register to comment.