1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-02 14:24:11 +01:00

Fix: The change in commit 537e3e9595 (537e3e9595 ) was incorrect - the column widths should be calculated with width() rather than outerWidth(). This can be seen by the misalignment in the tmp table if it is made visible.

This commit is contained in:
Allan Jardine 2011-05-08 15:40:03 +01:00
parent 2c2a4754d9
commit 1d651f68a3

View File

@ -5601,7 +5601,7 @@
{ {
if ( oSettings.aoColumns[i].bVisible ) if ( oSettings.aoColumns[i].bVisible )
{ {
iWidth = $(oNodes[iCorrector]).outerWidth(); iWidth = $(oNodes[iCorrector]).width();
if ( iWidth !== null && iWidth > 0 ) if ( iWidth !== null && iWidth > 0 )
{ {
oSettings.aoColumns[i].sWidth = _fnStringToCss( iWidth ); oSettings.aoColumns[i].sWidth = _fnStringToCss( iWidth );