fixed problem with pager size being incorrect with nested tables. Fixes #196

This commit is contained in:
Mottie 2012-12-18 23:02:04 -06:00
parent d7f2891a67
commit d0f48b14ba

View File

@ -137,7 +137,7 @@
h = $.data(table, 'pagerSavedHeight');
if (h) {
d = h - $b.height();
if ( d > 5 && $.data(table, 'pagerLastSize') === c.size && $b.find('tr:visible').length < c.size ) {
if ( d > 5 && $.data(table, 'pagerLastSize') === c.size && $b.children('tr:visible').length < c.size ) {
$b.append('<tr class="pagerSavedHeightSpacer remove-me" style="height:' + d + 'px;"></tr>');
}
}
@ -155,7 +155,7 @@
hideRows = function(table, c){
if (!c.ajaxUrl) {
var i,
rows = $('tr:not(.' + table.config.cssChildRow + ')', table.tBodies),
rows = $(table.tBodies).children('tr:not(.' + table.config.cssChildRow + ')'),
l = rows.length,
s = ( c.page * c.size ),
e = s + c.size,