Responsive table - random columns width on each reload

Responsive table - random columns width on each reload

sergedasergeda Posts: 42Questions: 16Answers: 0

I have specified width="100%" on my table.
And inside columns section on DT initialization I specified width in percent for each column. But on each reload I got different width of the columns. When I look at html of the page I see that some th elements got style="width: 0px;"
Why is this so? How can I fix this issue?

Answers

  • sergedasergeda Posts: 42Questions: 16Answers: 0

    Also I must to add that I don't use Responsive extension

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Sounds like you are initialising the table while it is hidden. Call columns.adjust() when you make it visible.

    Allan

This discussion has been closed.