Skip to content

Commit

Permalink
Merge pull request #1418 from DoctorWhite/patch-1
Browse files Browse the repository at this point in the history
Height Issues For Certain Browsers
  • Loading branch information
Mottie authored Jun 8, 2017
2 parents 31e2376 + 8b52ba1 commit 6d48694
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addons/pager/jquery.tablesorter.pager.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,11 @@
if (p.fixedHeight && !p.isDisabled) {
h = $.data(table, 'pagerSavedHeight');
if (h) {
d = h - $b.height();
var bs = 0;
if($(table).css('border-spacing').split(" ").length>1){
bs = $(table).css('border-spacing').split(" ")[1].replace(/[^-\d\.]/g, '');
}
d = h - $b.height()+(bs*p.size)-bs;
if ( d > 5 && $.data(table, 'pagerLastSize') === p.size &&
$b.children('tr:visible').length < (p.size === 'all' ? p.totalRows : p.size) ) {
$b.append('<tr class="pagerSavedHeightSpacer ' + c.selectorRemove.slice(1) + '" style="height:' + d + 'px;"></tr>');
Expand Down

0 comments on commit 6d48694

Please sign in to comment.