Responsive buttons show when all columns are visible

Responsive buttons show when all columns are visible

jayasbury@ferrellgas.comjayasbury@ferrellgas.com Posts: 12Questions: 3Answers: 0

Maximize the browser first. After page is loaded and switched to the load details tab, I see

Restore the window and then maximize again and I see

I would expect the initial load would not show the responsive buttons if they are not needed.

Setup code Datatables version 1.7.2

This question has accepted answers - jump to:

Answers

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

    Could you try using the nightly version of Responsive please? There are a few fixes in it which should address this sort of thing.

    Also, are you calling columns.adjust() when you make the tab with the table in it visible?

    Allan

  • jayasbury@ferrellgas.comjayasbury@ferrellgas.com Posts: 12Questions: 3Answers: 0

    No I am not. Should I?

  • kthorngrenkthorngren Posts: 21,322Questions: 26Answers: 4,948
    Answer ✓

    You should. The columns.adjust() docs mention this:

    Call it when the table becomes visible if hidden when initialised (for example in a tab) or when the data changes significantly.

    Kevin

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

    See also this example.

    Allan

This discussion has been closed.