1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-27 00:54:15 +01:00

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
This commit is contained in:
Allan Jardine 2010-10-07 17:44:49 +01:00
parent e494695c03
commit 1b2a6ff5b1

View File

@ -1,6 +1,6 @@
/* /*
* File: jquery.dataTables.js * File: jquery.dataTables.js
* Version: 1.7.3 * Version: 1.7.4 dev
* Description: Paginate, search and sort HTML tables * Description: Paginate, search and sort HTML tables
* Author: Allan Jardine (www.sprymedia.co.uk) * Author: Allan Jardine (www.sprymedia.co.uk)
* Created: 28/3/2008 * Created: 28/3/2008
@ -68,7 +68,7 @@
* Notes: Allowed format is a.b.c.d.e where: * 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 * 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 * Variable: sErrMode
@ -3799,8 +3799,10 @@
} }
/* Finally set the width's of the header and footer tables */ /* Finally set the width's of the header and footer tables */
nScrollHeadTable.style.width = _fnStringToCss( $(o.nTable).outerWidth() ); var iOuterWidth = $(o.nTable).outerWidth();
nScrollHeadInner.style.width = _fnStringToCss( $(o.nTable).outerWidth()+o.oScroll.iBarWidth ); nScrollHeadTable.style.width = _fnStringToCss( iOuterWidth );
nScrollHeadInner.style.width = _fnStringToCss( iOuterWidth+o.oScroll.iBarWidth );
nScrollHeadInner.parentNode.style.width = _fnStringToCss( iOuterWidth );
if ( o.nTFoot !== null ) if ( o.nTFoot !== null )
{ {