Button Collection Causing Overflow

Button Collection Causing Overflow

DalderDalder Posts: 30Questions: 12Answers: 1

Hello,

I have come across an issue where using a button collection that is taller than the table itself.

What happens is once you expand the collection to show all of the available buttons it causes a scroll bar to appear as the buttons occupy more height than the table itself.

Please find an example attached which shows off the issue:

https://live.datatables.net/tejitehe/1/

Can someone please let me know how best to fix this issue?

Many thanks,

Dan

This question has an accepted answers - jump to answer

Answers

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

    Hi Dan,

    Remove <div class="table-responsive">. That is a Bootstrap construct which sets that element to overflow: auto, so anything that overflows it, would be hidden behind a scrollbar.

    Try DataTable's own Responsive extension if you don't want to run into that issue.

    Allan

  • DalderDalder Posts: 30Questions: 12Answers: 1

    Hi Allan,

    Thanks for the quick solution.

    I've had a look at our required specifications and we don't actually need the table to be responsive at all, so I can simply remove it.

    Cheers,

    Dan

Sign In or Register to comment.