mirror of
https://github.com/DataTables/DataTables.git
synced 2025-03-01 02:54:15 +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:
parent
0c493b6789
commit
84a1940cad
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -5437,7 +5437,7 @@
|
|||||||
|
|
||||||
var iWidth;
|
var iWidth;
|
||||||
var nTmp = document.createElement( "div" );
|
var nTmp = document.createElement( "div" );
|
||||||
nTmp.style.width = sWidth;
|
nTmp.style.width = _fnStringToCss( sWidth );
|
||||||
|
|
||||||
nParent.appendChild( nTmp );
|
nParent.appendChild( nTmp );
|
||||||
iWidth = nTmp.offsetWidth;
|
iWidth = nTmp.offsetWidth;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user