From 1b2a6ff5b1af55e181b211768f221f769810bfb9 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Thu, 7 Oct 2010 17:44:49 +0100 Subject: [PATCH] Fixed: Table could expand on each draw, incorrectly, due to a rather convoluted mixture of the table width being 100% and the outer header not having a width set (so when the table was cloned into the header, it would expand to take up the width of the inner header element, which was the outer + the scrollbar width). Change: Move version to 1.7.4.dev --- media/js/jquery.dataTables.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 02a54afd..5d57f7ba 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -1,6 +1,6 @@ /* * File: jquery.dataTables.js - * Version: 1.7.3 + * Version: 1.7.4 dev * Description: Paginate, search and sort HTML tables * Author: Allan Jardine (www.sprymedia.co.uk) * Created: 28/3/2008 @@ -68,7 +68,7 @@ * Notes: Allowed format is a.b.c.d.e where: * a:int, b:int, c:int, d:string(dev|beta), e:int. d and e are optional */ - _oExt.sVersion = "1.7.3"; + _oExt.sVersion = "1.7.4.dev"; /* * Variable: sErrMode @@ -3799,8 +3799,10 @@ } /* Finally set the width's of the header and footer tables */ - nScrollHeadTable.style.width = _fnStringToCss( $(o.nTable).outerWidth() ); - nScrollHeadInner.style.width = _fnStringToCss( $(o.nTable).outerWidth()+o.oScroll.iBarWidth ); + var iOuterWidth = $(o.nTable).outerWidth(); + nScrollHeadTable.style.width = _fnStringToCss( iOuterWidth ); + nScrollHeadInner.style.width = _fnStringToCss( iOuterWidth+o.oScroll.iBarWidth ); + nScrollHeadInner.parentNode.style.width = _fnStringToCss( iOuterWidth ); if ( o.nTFoot !== null ) {