give back space after removing columns

give back space after removing columns

nicolasnicolas Posts: 1Questions: 0Answers: 0
edited February 2012 in General
Hi,
I got a datatable sitting in a jQuery tab. The tab gets bigger as I add columns (I got a different widget where users can add and remove columns to the table). However, when I remove columns, the table still takes the available space, scaling the remaining columns to a larger width. There's a kind of deadlock because the tab has scaled to fit the table and the table takes all available space... but is there a way to make the datatable "give back" space that's no longer needed?
Thanks a lot!
This discussion has been closed.