-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Height Issues For Certain Browsers #1418
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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>0){ | ||
bs = $(table).css('border-spacing').split(" ")[0].replace(/[^-\d\.]/g, ''); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The second /* border-spacing: horizontal vertical */
border-spacing: 1cm 2em; |
||
} | ||
d = h - $b.height()+(bs*p.size)-bs; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The demo doesn't appear to work for me... it is because of the |
||
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>'); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This
if
statement should always betrue
.... is there a particular browser where it isn't? When I use$('table').css('border-spacing')
on a table without any css changes, I will see2px 2px
.