Skip to content

Commit

Permalink
#264 - plugin in incorrect state on first init with position absolute…
Browse files Browse the repository at this point in the history
…, causes issues with very specific css
  • Loading branch information
mkoryak committed Nov 12, 2015
1 parent b5ecf6e commit c3087c7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 14 deletions.
5 changes: 1 addition & 4 deletions dist/jquery.floatThead-slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
}
$table.data('floatThead-lazy', false);

var headerFloated = false;
var headerFloated = true;
var scrollingTop, scrollingBottom;
var scrollbarOffset = {vertical: 0, horizontal: 0};
var scWidth = scrollbarWidth();
Expand Down Expand Up @@ -263,9 +263,6 @@
if(useAbsolutePositioning == null){ //defaults: locked=true, !locked=false
useAbsolutePositioning = locked;
}
if(!useAbsolutePositioning){
headerFloated = true; //#127
}
var $caption = $table.find("caption");
var haveCaption = $caption.length == 1;
if(haveCaption){
Expand Down
Loading

0 comments on commit c3087c7

Please sign in to comment.