column sWidth not working when scrollY is set and JSON is used!
column sWidth not working when scrollY is set and JSON is used!
I have the same problem as described in
http://datatables.net/forums/discussion/19089/datatables-bautowidth-false-not-working-when-sscrolly-is-set
but it's still not working with the nightly build (which was the solution on that discussion).
When loading through json/ajax header width is ignored and the columns get resized. You can even see how the column has one width before loading the json data and one after.
I've made a fiddle showing the problem, I'd appreciate any help!
http://jsfiddle.net/nmaurer/fa8Lbwxy/
Thanks!
Replies
Taken my a while to reply this one - sorry!
Two issues that I see with your JSFiddle:
false
so DataTables can't do its width calculations.With a wide consider and autoWidth enabled, the 50% is applied as expected: http://jsfiddle.net/fa8Lbwxy/1/ .
Allan