Column Width Changes On Page Reload
Column Width Changes On Page Reload
srcoley
Posts: 1Questions: 0Answers: 0
First of all, thanks so much for Datatables. It's such a life saver.
I'm having a bit of trouble with the styling though. Every time I refresh the browser, the width of the columns change. Sometimes they're tiny, others they're huge. The data is completely static, so I'm not sure why this is happening.
I've set the width of the table to 100%, but that doesn't seem to be doing any good.
If it would help to take a look, I've uploaded the code onto a server, which you can view here: http://dev.srcoley.com/sf/
Thanks!
I'm having a bit of trouble with the styling though. Every time I refresh the browser, the width of the columns change. Sometimes they're tiny, others they're huge. The data is completely static, so I'm not sure why this is happening.
I've set the width of the table to 100%, but that doesn't seem to be doing any good.
If it would help to take a look, I've uploaded the code onto a server, which you can view here: http://dev.srcoley.com/sf/
Thanks!
This discussion has been closed.
Replies
It looks like you are rendering the UI by Javascript - try making the DataTables initialisation the last thing that happens, so the rest of the DOM has been correctly sized, and DataTables can see how much space it can take up. Failing that, see if a static width on the consider of the table will do anything...
Allan