File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " LightPivotTable" ,
3
3
"author" : " ZitRo" ,
4
- "version" : " 1.4.10 " ,
4
+ "version" : " 1.4.11 " ,
5
5
"description" : " A lightweight pivot table for MDX2JSON source for InterSystems Cache" ,
6
6
"main" : " test/testServer.js" ,
7
7
"repository" : {
Original file line number Diff line number Diff line change @@ -672,7 +672,8 @@ PivotView.prototype.recalculateSizes = function (container) {
672
672
pTableHead = tableBlock . getElementsByTagName ( "tbody" ) [ 0 ] ,
673
673
searchInput = container . getElementsByClassName ( "lpt-searchInput" ) [ 0 ] ,
674
674
searchInputSize = searchInput ? container . offsetWidth - this . SEARCHBOX_LEFT_MARGIN : 0 ,
675
- tableTr = tableBlock . getElementsByTagName ( "tr" ) [ 0 ] ;
675
+ tableTr = tableBlock . getElementsByTagName ( "tr" ) [ 0 ] ,
676
+ pageSwitcher = container . getElementsByClassName ( "lpt-pageSwitcher" ) [ 0 ] ;
676
677
677
678
if ( tTableHead . childNodes [ 0 ] && tTableHead . childNodes [ 0 ] . lastChild [ "_extraCell" ] ) {
678
679
tTableHead . childNodes [ 0 ] . removeChild ( tTableHead . childNodes [ 0 ] . lastChild ) ;
@@ -681,7 +682,7 @@ PivotView.prototype.recalculateSizes = function (container) {
681
682
lTableHead . removeChild ( lTableHead . lastChild ) ;
682
683
}
683
684
684
- var pagedHeight = ( this . pagination . on ? this . PAGINATION_BLOCK_HEIGHT : 0 )
685
+ var pagedHeight = ( pageSwitcher ? this . PAGINATION_BLOCK_HEIGHT : 0 )
685
686
+ ( this . SEARCH_ENABLED ? this . PAGINATION_BLOCK_HEIGHT : 0 ) ,
686
687
headerW = Math . max ( leftHeader . offsetWidth , headerContainer . offsetWidth ) ,
687
688
headerH = topHeader . offsetHeight ;
You can’t perform that action at this time.
0 commit comments