Scroller: integrate with resizable (WIP)

This commit is contained in:
Mottie 2015-06-22 07:49:55 -05:00
parent 2adda8d2e9
commit e2c3149229

View File

@ -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)