From e2c31492299e5580f5f54248056e769bb1ad29ad Mon Sep 17 00:00:00 2001 From: Mottie Date: Mon, 22 Jun 2015 07:49:55 -0500 Subject: [PATCH] Scroller: integrate with resizable (WIP) --- js/widgets/widget-scroller.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/js/widgets/widget-scroller.js b/js/widgets/widget-scroller.js index 63f7654e..15ff8645 100644 --- a/js/widgets/widget-scroller.js +++ b/js/widgets/widget-scroller.js @@ -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)