diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 61467532..72806450 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -3577,7 +3577,7 @@ .css( 'width', _fnStringToCss( sWidth ) ) .appendTo( nParent ); - var width = n.offsetWidth; + var width = n[0].offsetWidth; n.remove(); return width; diff --git a/media/src/core/core.sizing.js b/media/src/core/core.sizing.js index d933204e..013a0f17 100644 --- a/media/src/core/core.sizing.js +++ b/media/src/core/core.sizing.js @@ -21,7 +21,7 @@ function _fnConvertToWidth ( sWidth, nParent ) .css( 'width', _fnStringToCss( sWidth ) ) .appendTo( nParent ); - var width = n.offsetWidth; + var width = n[0].offsetWidth; n.remove(); return width;