fnAdjustColumnSizing usage
fnAdjustColumnSizing usage
I'm trying to get my datatables to resize the columns when the browser window resizes. I have the following code in my screen:
$(window).resize(function() {
oTable.fnAdjustColumnSizing();
});
I can see that the code is being hit when the browser resizes, so the function is getting executed, but my datatable is not being resized. Is there anything I need to know about the use of this function / something I'm doing wrong, or a bug perhaps?
Thanks.
$(window).resize(function() {
oTable.fnAdjustColumnSizing();
});
I can see that the code is being hit when the browser resizes, so the function is getting executed, but my datatable is not being resized. Is there anything I need to know about the use of this function / something I'm doing wrong, or a bug perhaps?
Thanks.
This discussion has been closed.
Replies
It's hard to say what may be causing the problem without being able to see it. That said, if you remove all css size stuff, strip it back to bare bones vanilla html, your table will flex with the browser - no question. Once you're at that stage, add the size stuff back, one step at a time, and try to see *what* is holding your table size(s) hostage.
You may not even need fnAdjustColumnSizing when you're done.
HTH
ruzz
Smooth.