From bb599df7d7d4f2ec73d58d7f842074f9f6c2fa9f Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Thu, 31 Aug 2017 13:52:23 -0500 Subject: [PATCH] Scroller: Update scroll position after fixing columns --- js/widgets/widget-scroller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/widgets/widget-scroller.js b/js/widgets/widget-scroller.js index 340ee68c..0708e5f4 100644 --- a/js/widgets/widget-scroller.js +++ b/js/widgets/widget-scroller.js @@ -273,10 +273,9 @@ $tableWrap .off( 'scroll' + namespace ) .on( 'scroll' + namespace, function() { - //Save position + // Save position wo.scroller_saved[0] = $tableWrap.scrollLeft(); wo.scroller_saved[1] = $tableWrap.scrollTop(); - if ( wo.scroller_jumpToHeader ) { var pos = $win.scrollTop() - $hdr.offset().top; if ( $( this ).scrollTop() !== 0 && pos < tbHt && pos > 0 ) { @@ -845,6 +844,7 @@ // adjust caption height, see #1202 $fixedColumn.find('caption').height( wo.scroller_$header.find( 'caption' ).height() ); + $tableWrap.scroll(); wo.scroller_isBusy = false; },