Removing horizontal scroll bar after hiding columns?
Removing horizontal scroll bar after hiding columns?
callahan09
Posts: 18Questions: 0Answers: 0
Hello!
I have a table with something like 14 columns, and only about 6 of them fit within the confines of my container at a time. So I've utilized ColVis and started my table out with most of the rows hidden, so you see only the most important data at first, and it all fits in the container with no horizontal scroll bar at all. Then I've also used the options sScrollX: 100% and bScrollCollapse: true to make a horizontal scroll bar appear when more columns are made visible, rather than letting the table out-grow the container. Table remains the same size, but scroll bar is added.
The problem is that when you make those columns invisible again, the other columns don't shrink down to the size they were initially, and the scroll bar doesn't disappear.
How can I make that happen?
Thanks!
I have a table with something like 14 columns, and only about 6 of them fit within the confines of my container at a time. So I've utilized ColVis and started my table out with most of the rows hidden, so you see only the most important data at first, and it all fits in the container with no horizontal scroll bar at all. Then I've also used the options sScrollX: 100% and bScrollCollapse: true to make a horizontal scroll bar appear when more columns are made visible, rather than letting the table out-grow the container. Table remains the same size, but scroll bar is added.
The problem is that when you make those columns invisible again, the other columns don't shrink down to the size they were initially, and the scroll bar doesn't disappear.
How can I make that happen?
Thanks!
This discussion has been closed.