mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
parent
c391287ce2
commit
8c99112332
2
dist/js/widgets/widget-scroller.min.js
vendored
2
dist/js/widgets/widget-scroller.min.js
vendored
File diff suppressed because one or more lines are too long
@ -330,7 +330,12 @@ $(function() {
|
||||
<tr id="scroller-height">
|
||||
<td><span class="permalink">scroller_height</span></td>
|
||||
<td>300</td>
|
||||
<td>Set the height of the scroll window in pixels.</td>
|
||||
<td>Set the height of the scroll window in pixels (<span class="version">v2.25.5</span>)
|
||||
<div class="collapsible">
|
||||
<br>
|
||||
As of <span class="version">v2.25.5</span>, setting this option to an empty string or zero will make the scroller full height.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="scroller-bar-width">
|
||||
|
@ -186,7 +186,7 @@
|
||||
},
|
||||
|
||||
setup : function( c, wo ) {
|
||||
var maxHt, tbHt, $hdr, $t, $hCells, $fCells, $tableWrap, events, tmp, detectedWidth,
|
||||
var tbHt, $hdr, $t, $hCells, $fCells, $tableWrap, events, tmp, detectedWidth,
|
||||
$win = $( window ),
|
||||
tsScroller = ts.scroller,
|
||||
namespace = c.namespace + 'tsscroller',
|
||||
@ -211,7 +211,6 @@
|
||||
wo.scroller_barSetWidth = detectedWidth !== null ? detectedWidth : 15;
|
||||
}
|
||||
|
||||
maxHt = wo.scroller_height || 300;
|
||||
tmp = $table.children( 'caption' );
|
||||
|
||||
$hdr = $( '<table class="' + $table.attr( 'class' ) + '" cellpadding=0 cellspacing=0>' +
|
||||
@ -251,12 +250,8 @@
|
||||
|
||||
// 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 + '" />' );
|
||||
}
|
||||
$table.wrap( '<div class="' + tscss.scrollerTable +
|
||||
( wo.scroller_height > 0 ? '" style="max-height:' + wo.scroller_height + 'px;">' : '">' ) );
|
||||
$tableWrap = $table.parent();
|
||||
|
||||
// make scroller header sortable
|
||||
|
Loading…
Reference in New Issue
Block a user