fnAdjustColumnSizing doesn't seem to work right
fnAdjustColumnSizing doesn't seem to work right
MartinMa
Posts: 1Questions: 0Answers: 0
Hi,
I have a very basic table initialized with the standard dataTable constructor and no extra css. On the window resize event I'm calling fnAdjustColumnSizing followed by fnDraw. But the table's width doesn't adapt to the window's width. When I open Firebug, I see that the table's headings are recalculated.
Here is is small demo site: http://jsbin.com/ocaben/8
Reload the page with a non-maximized browser window (maybe 1/4th of the screen) and enlarge the window's width afterwards by dragging the browser window's border.
Am I missing something here? Why doesn't it recalculate the columns widths according to the new window's width?
Tested in FF 10 and IE 8.
Thanks in advance for your attention
Martin
P.S. I know that I can achieve the desired effect by disabling bAutoWidth and putting width: 100% on the table.
I have a very basic table initialized with the standard dataTable constructor and no extra css. On the window resize event I'm calling fnAdjustColumnSizing followed by fnDraw. But the table's width doesn't adapt to the window's width. When I open Firebug, I see that the table's headings are recalculated.
Here is is small demo site: http://jsbin.com/ocaben/8
Reload the page with a non-maximized browser window (maybe 1/4th of the screen) and enlarge the window's width afterwards by dragging the browser window's border.
Am I missing something here? Why doesn't it recalculate the columns widths according to the new window's width?
Tested in FF 10 and IE 8.
Thanks in advance for your attention
Martin
P.S. I know that I can achieve the desired effect by disabling bAutoWidth and putting width: 100% on the table.
This discussion has been closed.