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:
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 nTmp = document.createElement( "div" );
|
||||
nTmp.style.width = sWidth;
|
||||
nTmp.style.width = _fnStringToCss( sWidth );
|
||||
|
||||
nParent.appendChild( nTmp );
|
||||
iWidth = nTmp.offsetWidth;
|
||||
|
Loading…
Reference in New Issue
Block a user