Skip to content

Commit

Permalink
Merge pull request #103 from Kurtas/patch-1
Browse files Browse the repository at this point in the history
Fix for Issue 101 - much better perfomance
  • Loading branch information
mkoryak committed Aug 6, 2014
2 parents edec410 + b2f3412 commit 47503de
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions dist/jquery.floatThead.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,14 @@
}
}
unfloat();
var width = new Array();
for(i=0; i < numCols; i++){
var _rowcell = $rowCells.get(i);
var rowWidth = _rowcell.offsetWidth;
$headerCells.eq(i).width(rowWidth);
$tableCells.eq(i).width(rowWidth);
var _rowcell = $rowCells.get(i);
width[i] = _rowcell.offsetWidth;
}
for(i=0; i < numCols; i++){
$headerCells.eq(i).width(width[i]);
$tableCells.eq(i).width(width[i]);
}
refloat();
} else {
Expand Down

0 comments on commit 47503de

Please sign in to comment.