mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Scroller: integrate with resizable (WIP)
This commit is contained in:
parent
2adda8d2e9
commit
e2c3149229
@ -409,16 +409,12 @@ ts.scroller = {
|
||||
c.$tbodies.eq(0).prepend( row ); // tbody
|
||||
$hdr.children( 'thead' ).append( row );
|
||||
$foot.children( 'tfoot' ).append( row );
|
||||
// update resizable widget handles
|
||||
c.$table.trigger( 'resizableUpdate' );
|
||||
|
||||
// include colgroup or alignment is off
|
||||
if ( c.widthFixed ) {
|
||||
ts.fixColumnWidth( c.table );
|
||||
row = c.$table.children( 'colgroup' )[0].outerHTML;
|
||||
$hdr.prepend( row );
|
||||
$foot.prepend( row );
|
||||
}
|
||||
ts.fixColumnWidth( c.table );
|
||||
row = c.$table.children( 'colgroup' )[0].outerHTML;
|
||||
$hdr.prepend( row );
|
||||
$foot.prepend( row );
|
||||
|
||||
temp = $tableWrap.parent().innerWidth() -
|
||||
( tsScroller.hasScrollBar( $tableWrap ) ? wo.scroller_barSetWidth : 0 );
|
||||
@ -443,6 +439,11 @@ ts.scroller = {
|
||||
|
||||
$div.removeClass( tscss.scrollerHideElement );
|
||||
|
||||
// update resizable widget handles
|
||||
setTimeout( function() {
|
||||
c.$table.trigger( 'resizableUpdate' );
|
||||
}, 100 );
|
||||
|
||||
},
|
||||
|
||||
// Add fixed (frozen) columns (Do not call directly, use updateFixed)
|
||||
|
Loading…
Reference in New Issue
Block a user