Skip to content

Commit

Permalink
fix for #86 - hidden TRs no longer used in header height calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoryak committed Jun 30, 2014
1 parent 7b43acc commit 493b999
Show file tree
Hide file tree
Showing 8 changed files with 1,437 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/jquery.floatThead-slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@

function setHeaderHeight(){
var headerHeight = 0;
$header.find("tr").each(function(){
$header.find("tr:visible").each(function(){
headerHeight += $(this).outerHeight(true);
});
$sizerRow.outerHeight(headerHeight);
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.floatThead-slim.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jquery.floatThead.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@

function setHeaderHeight(){
var headerHeight = 0;
$header.find("tr").each(function(){
$header.find("tr:visible").each(function(){
headerHeight += $(this).outerHeight(true);
});
$sizerRow.outerHeight(headerHeight);
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.floatThead.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jquery.floatThead.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@

function setHeaderHeight(){
var headerHeight = 0;
$header.find("tr").each(function(){
$header.find("tr:visible").each(function(){
headerHeight += $(this).outerHeight(true);
});
$sizerRow.outerHeight(headerHeight);
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@
},
"homepage": "https://github.com/mkoryak/floatThead",
"dependencies": {
"cheerio": "~0.13.1",
"grunt-bg-shell": "~2.3.1",
"grunt-contrib-clean": "^0.5.0",
"grunt-contrib-concat": "^0.4.0",
"grunt-contrib-copy": "^0.5.0",
"grunt-contrib-uglify": "~0.2.7",
"grunt-contrib-watch": "~0.5.3",
"grunt-jekyll": "~0.4.1",
"grunt-text-replace": "~0.3.10",
"grunt-bg-shell": "~2.3.1",
"cheerio": "~0.13.1",
"request": "~2.34.0"
}
}
1 change: 1 addition & 0 deletions tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ <h1>Tests</h1>
<li><a href="{{ site.base_url }}/tests/issue-79/">Issue 79</a></li>
<li><a href="{{ site.base_url }}/tests/issue-82/">Issue 82</a></li>
<li><a href="{{ site.base_url }}/tests/issue-84/">Issue 84</a></li>
<li><a href="{{ site.base_url }}/tests/issue-86/">Issue 86</a></li>
</ul>
</div>
Loading

0 comments on commit 493b999

Please sign in to comment.