Column Width Changes On Page Reload

Column Width Changes On Page Reload

srcoleysrcoley Posts: 1Questions: 0Answers: 0
edited September 2010 in Bug reports
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!

Replies

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    How very odd! I've only been able to reproduce the issue in Webkit browsers - what browser are you using? The layout is doing something different in Firefox, possibly something to do with that?

    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
This discussion has been closed.