diff --git a/js/widgets/widget-scroller.js b/js/widgets/widget-scroller.js index f66972d7..a87db989 100644 --- a/js/widgets/widget-scroller.js +++ b/js/widgets/widget-scroller.js @@ -248,8 +248,14 @@ .wrap( '
' ) .find( '.' + tscss.header ); - // use max-height, so the height resizes dynamically while filtering - $table.wrap( '
' ); + // if max-height is greater than 0 use max-height, so the height resizes dynamically while filtering + // else let the table not have a vertical scroll + if(maxHt > 0){ + $table.wrap( '
' ); + } + else { + $table.wrap( '
' ); + } $tableWrap = $table.parent(); // make scroller header sortable