1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | // DATA_TEMPLATE: dom_data oTest.fnStart( "2840 - Restore table width on fnDestory" ); $(document).ready( function () { document.cookie = ""; $('#example').dataTable( { "sScrollX": "100%", "sScrollXInner": "110%" } ); $('#example').dataTable().fnDestroy(); oTest.fnTest( "Width after destroy", null, function () { return $('#example').width() == "800"; } ); oTest.fnComplete(); } ); |