1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-30 12:24:10 +01:00

Fix: Passing an integer for sWidth would cause the column width calculations to go completely off since they weren't actually used by the browser. Make use of the _fnStringToCss helper function for exactly this kind of thing.

This commit is contained in:
Allan Jardine 2011-05-12 20:29:24 +01:00
parent 0c493b6789
commit 84a1940cad

View File

@ -5437,7 +5437,7 @@
var iWidth;
var nTmp = document.createElement( "div" );
nTmp.style.width = sWidth;
nTmp.style.width = _fnStringToCss( sWidth );
nParent.appendChild( nTmp );
iWidth = nTmp.offsetWidth;