()
| 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 |
no test coverage detected