MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / resizeHeader

Function resizeHeader

public/javascripts/jquery.tablesorter.widgets.js:2338–2348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2336 }
2337 },
2338 resizeHeader = function() {
2339 stickyOffset = $stickyOffset.length ? $stickyOffset.height() || 0 : parseInt(wo.stickyHeaders_offset, 10) || 0;
2340 spacing = 0;
2341 $stickyWrap.css({
2342 left : $attach.length ? parseInt($attach.css('padding-left'), 10) || 0 :
2343 $table.offset().left - parseInt($table.css('margin-left'), 10) - $xScroll.scrollLeft() - spacing,
2344 width: $table.outerWidth()
2345 });
2346 setWidth( $table, $stickyTable );
2347 setWidth( $header, $stickyCells );
2348 },
2349 scrollSticky = function( resizing ) {
2350 if (!$table.is(':visible')) { return; } // fixes #278
2351 // Detect nested tables - fixes #724

Callers 2

scrollStickyFunction · 0.85

Calls 1

setWidthFunction · 0.85

Tested by

no test coverage detected