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:
parent
3f04293609
commit
6557642f75
5
media/js/jquery.dataTables.js
vendored
5
media/js/jquery.dataTables.js
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user