Incorrect table width using sScrollX and iDeferLoading

Incorrect table width using sScrollX and iDeferLoading

AthosXtremeAthosXtreme Posts: 4Questions: 0Answers: 0
edited September 2013 in DataTables 1.9
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

Replies

  • AthosXtremeAthosXtreme Posts: 4Questions: 0Answers: 0
    Solved!

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