Incorrect table width using sScrollX and iDeferLoading
Incorrect table width using sScrollX and iDeferLoading
AthosXtreme
Posts: 4Questions: 0Answers: 0
Datatables 1.9.4.
jQuery 1.9.1
jQuery UI 1.10.3
Ajax loaded div including the table.
Using sScrollX: 100% and iDeferLoading for initial aaData options it shows an incorrect table width in i'ts first draw only. If I reload the div or hit page change, the table width is correctly refreshed showing horizontal scroll.
Any suggestions are appreciated. Thanks.
http://img856.imageshack.us/img856/6630/c92z.jpg
jQuery 1.9.1
jQuery UI 1.10.3
Ajax loaded div including the table.
Using sScrollX: 100% and iDeferLoading for initial aaData options it shows an incorrect table width in i'ts first draw only. If I reload the div or hit page change, the table width is correctly refreshed showing horizontal scroll.
Any suggestions are appreciated. Thanks.
http://img856.imageshack.us/img856/6630/c92z.jpg
This discussion has been closed.
Replies
Show hidden div with the table before call datatables. Browsers set automatic width values and related stuff after first draw of DOM elements, values which datatables need for calculations.