Skip to content

Commit

Permalink
fix #79 - incorrectly assuming that table cells are always going to b…
Browse files Browse the repository at this point in the history
…e TD elements in the getSizingRow function used by IE
  • Loading branch information
mkoryak committed Apr 30, 2014
1 parent 4a1951f commit e243ece
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions dist/jquery.floatThead-slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
getSizingRow: function($table, $cols, $fthCells){ // this is only called when using IE,
// override it if the first row of the table is going to contain colgroups (any cell spans greater then one col)
// it should return a jquery object containing a wrapped set of table cells comprising a row that contains no col spans and is visible
return $table.find('tbody tr:visible:first>td');
return $table.find('tbody tr:visible:first>*');
},
floatTableClass: 'floatThead-table',
floatWrapperClass: 'floatThead-wrapper',
Expand Down Expand Up @@ -491,9 +491,9 @@
if(haveCaption && captionAlignTop){
tableOffset.top += captionHeight;
}
var top, left, tableHeight;
var top, left;
var tableHeight = $table.outerHeight();

tableHeight = $table.outerHeight();
if(locked && useAbsolutePositioning){ //inner scrolling, absolute positioning
if (tableContainerGap >= scrollingContainerTop) {
var gap = tableContainerGap - scrollingContainerTop;
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.floatThead-slim.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/jquery.floatThead.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
getSizingRow: function($table, $cols, $fthCells){ // this is only called when using IE,
// override it if the first row of the table is going to contain colgroups (any cell spans greater then one col)
// it should return a jquery object containing a wrapped set of table cells comprising a row that contains no col spans and is visible
return $table.find('tbody tr:visible:first>td');
return $table.find('tbody tr:visible:first>*');
},
floatTableClass: 'floatThead-table',
floatWrapperClass: 'floatThead-wrapper',
Expand Down Expand Up @@ -491,9 +491,9 @@
if(haveCaption && captionAlignTop){
tableOffset.top += captionHeight;
}
var top, left, tableHeight;
var top, left;
var tableHeight = $table.outerHeight();

tableHeight = $table.outerHeight();
if(locked && useAbsolutePositioning){ //inner scrolling, absolute positioning
if (tableContainerGap >= scrollingContainerTop) {
var gap = tableContainerGap - scrollingContainerTop;
Expand Down
Loading

0 comments on commit e243ece

Please sign in to comment.