From 1d651f68a3f187e0d1f9c39d4788c0a59555a05a Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Sun, 8 May 2011 15:40:03 +0100 Subject: [PATCH] Fix: The change in commit 537e3e9595b4b641f333c43d2d8d575217b1d234 (https://github.com/DataTables/DataTables/commit/537e3e9595b4b641f333c43d2d8d575217b1d234 ) 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. --- media/js/jquery.dataTables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 09627f68..0350270b 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -5601,7 +5601,7 @@ { if ( oSettings.aoColumns[i].bVisible ) { - iWidth = $(oNodes[iCorrector]).outerWidth(); + iWidth = $(oNodes[iCorrector]).width(); if ( iWidth !== null && iWidth > 0 ) { oSettings.aoColumns[i].sWidth = _fnStringToCss( iWidth );