1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11:52:11 +01:00

Fix: The table width is not set when auto width is disabled so we should not set it when destroying the table - 5220

This commit is contained in:
Allan Jardine 2011-06-20 18:08:10 +01:00
parent 3f04293609
commit 6557642f75

View File

@ -2227,7 +2227,10 @@
}
/* Restore the width of the original table */
oSettings.nTable.style.width = _fnStringToCss(oSettings.sDestroyWidth);
if ( oSettings.bAutoWidth === true )
{
oSettings.nTable.style.width = _fnStringToCss(oSettings.sDestroyWidth);
}
/* If the were originally odd/even type classes - then we add them back here. Note
* this is not fool proof (for example if not all rows as odd/even classes - but