mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
StickyHeaders: Update on table resize for Firefox. Fixes #1183
This commit is contained in:
parent
fade388523
commit
8ed9156cbb
2
dist/js/widgets/widget-stickyHeaders.min.js
vendored
2
dist/js/widgets/widget-stickyHeaders.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user