StickyHeaders: Update on table resize for Firefox. Fixes #1183

This commit is contained in:
Rob Garrison 2016-03-23 11:12:28 -05:00
parent fade388523
commit 8ed9156cbb
2 changed files with 9 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -266,6 +266,13 @@
}
}
// resize table (Firefox)
if (wo.stickyHeaders_addResizeEvent) {
$table.bind('resize' + c.namespace + 'stickyheaders', function() {
resizeHeader();
});
}
$table.triggerHandler('stickyHeadersInit');
},
@ -273,7 +280,7 @@
var namespace = c.namespace + 'stickyheaders ';
c.$table
.removeClass('hasStickyHeaders')
.unbind( ('pagerComplete filterEnd stickyHeadersUpdate '.split(' ').join(namespace)).replace(/\s+/g, ' ') )
.unbind( ('pagerComplete resize filterEnd stickyHeadersUpdate '.split(' ').join(namespace)).replace(/\s+/g, ' ') )
.next('.' + ts.css.stickyWrap).remove();
if (wo.$sticky && wo.$sticky.length) { wo.$sticky.remove(); } // remove cloned table
$(window)