From 34096537c28f1aed5f2d2637846bbca7f7e38736 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Wed, 22 Aug 2012 16:39:36 +0100 Subject: [PATCH] Fix: Firefox Windows (not Mac) had an error when calculating if scrolling oversizing was needed or not (_fnBrowserDetect). The result was that the table did not fill the space when y-scrolling was enabled and Firefox Windows was used. Fix is to remove the height on the DT_BrowserTest parent as suggested by `randomuser` - 11406 --- media/js/jquery.dataTables.js | 25 +++++++++++++++---------- media/src/core/core.support.js | 2 +- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 2c28b672..0b5f6a5b 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -433,7 +433,6 @@ } - /** * Add a data array to the table, creating DOM node etc. This is the parallel to * _fnGatherData, but for adding rows from a Javascript source, rather than a @@ -498,7 +497,7 @@ /* Add to the display array */ oSettings.aiDisplayMaster.push( iRow ); - /* Create the DOM imformation */ + /* Create the DOM information */ if ( !oSettings.oFeatures.bDeferRender ) { _fnCreateTr( oSettings, iRow ); @@ -4881,7 +4880,7 @@ */ var n = $( '
'+ - '
'+ + '
'+ '
'+ '
'+ '
')[0]; @@ -5368,20 +5367,23 @@ var nBody = oSettings.nTBody; var i, iLen; - bRemove = (bRemove===undefined) ? false : true; + bRemove = (bRemove===undefined) ? false : bRemove; /* Flag to note that the table is currently being destroyed - no action should be taken */ oSettings.bDestroying = true; /* Fire off the destroy callbacks for plug-ins etc */ _fnCallbackFire( oSettings, "aoDestroyCallback", "destroy", [oSettings] ); - - /* Restore hidden columns */ - for ( i=0, iLen=oSettings.aoColumns.length ; i