Scroller: refresh column sizes after update; see #906 (issue 3)

This commit is contained in:
Mottie 2015-05-17 09:37:04 -05:00
parent 4912c556de
commit ed321c20bd
2 changed files with 6 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -252,7 +252,7 @@ ts.scroller = {
// Sorting, so scroll to top
$table
.off( 'sortEnd' + namespace + ' setFixedColumnSize' + namespace )
.off( 'sortEnd setFixedColumnSize updateComplete '.split( ' ' ).join( namespace + ' ' ) )
.on( 'sortEnd' + namespace, function() {
if ( wo.scroller_upAfterSort ) {
$table.parent().animate({ scrollTop: 0 }, 'fast' );
@ -270,6 +270,10 @@ ts.scroller = {
} else {
wo.scroller_$container.removeClass( tscss.scrollerHasFix );
}
})
.on( 'updateComplete' + namespace, function() {
// adjust column sizes after an update
ts.scroller.resize( c, wo );
});
// Setup window.resizeEnd event