diff --git a/stickyheader.jquery.js b/stickyheader.jquery.js index b82272d..a4a6aa4 100644 --- a/stickyheader.jquery.js +++ b/stickyheader.jquery.js @@ -23,10 +23,10 @@ jQuery(document).ready(function ($) { stickyHeader.css('width', tableWidth); var cellWidths = []; for (var i = 0, l = headerCells.length; i < l; i++) { - cellWidths[i] = $(headerCells[i]).width(); + cellWidths[i] = $(headerCells[i]).innerWidth(); } for (var i = 0, l = headerCells.length; i < l; i++) { - $(stickyHeaderCells[i]).css('width', cellWidths[i]); + $(stickyHeaderCells[i]).innerWidth(cellWidths[i]); } var cutoffTop = $(table).offset().top;