mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Merge pull request #1418 from DoctorWhite/patch-1
Height Issues For Certain Browsers
This commit is contained in:
commit
6d486940e4
@ -328,7 +328,11 @@
|
|||||||
if (p.fixedHeight && !p.isDisabled) {
|
if (p.fixedHeight && !p.isDisabled) {
|
||||||
h = $.data(table, 'pagerSavedHeight');
|
h = $.data(table, 'pagerSavedHeight');
|
||||||
if (h) {
|
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 &&
|
if ( d > 5 && $.data(table, 'pagerLastSize') === p.size &&
|
||||||
$b.children('tr:visible').length < (p.size === 'all' ? p.totalRows : 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>');
|
$b.append('<tr class="pagerSavedHeightSpacer ' + c.selectorRemove.slice(1) + '" style="height:' + d + 'px;"></tr>');
|
||||||
|
Loading…
Reference in New Issue
Block a user