Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82032

Showing/hiding columns with Bootstrap css shrinks table width continously

$
0
0

I am using the DataTables Bootstrap css. If you show/hide a column, it begins to continuously skink the table width more and more each time. If I comment out the included DataTables Bootstrap css file, things work fine.

I call the standard way to show/hide a column.

 var column = userTable.column(2);
 column.visible(!column.visible());

It appears DataTables puts an inline "width" in pixels on the table element; this gets smaller with each show/hide.

Any idea how to fix?


Viewing all articles
Browse latest Browse all 82032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>