mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Merge pull request #1165 from jasongabel/patch-1
Update widget-scroller.js opt no Vertical Scroll
This commit is contained in:
commit
f6d3a1587d
@ -248,8 +248,14 @@
|
||||
.wrap( '<div class="' + tscss.scrollerHeader + '" />' )
|
||||
.find( '.' + tscss.header );
|
||||
|
||||
// use max-height, so the height resizes dynamically while filtering
|
||||
$table.wrap( '<div class="' + tscss.scrollerTable + '" style="max-height:' + maxHt + 'px;" />' );
|
||||
// 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( '<div class="' + tscss.scrollerTable + '" style="max-height:' + maxHt + 'px;" />' );
|
||||
}
|
||||
else {
|
||||
$table.wrap( '<div class="' + tscss.scrollerTable + '" />' );
|
||||
}
|
||||
$tableWrap = $table.parent();
|
||||
|
||||
// make scroller header sortable
|
||||
|
Loading…
Reference in New Issue
Block a user