@@ -156,9 +156,11 @@ PivotView.prototype.getCellElement = function (x, y, considerHeaders) {
156
156
} ) ;
157
157
table2 = element . getElementsByClassName ( "lpt-leftHeader" ) [ 0 ] ; if ( ! table ) return null ;
158
158
table2 = table2 . getElementsByTagName ( "table" ) [ 0 ] ; if ( ! table ) return null ;
159
- hw = 0 ; [ ] . slice . call ( ( table2 . rows [ 0 ] || { cells : [ ] } ) . cells ) . forEach ( function ( e ) {
160
- hw += e . colSpan || 1 ;
161
- } ) ;
159
+ hw = 0 ; if ( ! ( this . getCurrentTableData ( ) . element || { } ) [ "_listing" ] ) {
160
+ [ ] . slice . call ( ( table2 . rows [ 0 ] || { cells : [ ] } ) . cells ) . forEach ( function ( e ) {
161
+ hw += e . colSpan || 1 ;
162
+ } ) ;
163
+ }
162
164
if ( x < hw && y < hh )
163
165
return element . getElementsByClassName ( "lpt-headerValue" ) [ 0 ] || null ;
164
166
if ( x >= hw && y < hh )
@@ -200,9 +202,11 @@ PivotView.prototype.getTableSize = function (considerHeaders) {
200
202
} ) ;
201
203
table = element . getElementsByClassName ( "lpt-leftHeader" ) [ 0 ] ; if ( ! table ) return 0 ;
202
204
table = table . getElementsByTagName ( "table" ) [ 0 ] ; if ( ! table ) return 0 ;
203
- [ ] . slice . call ( ( table . rows [ 0 ] || { cells : [ ] } ) . cells ) . forEach ( function ( e ) {
204
- hw += e . colSpan || 1 ;
205
- } ) ;
205
+ if ( ! ( this . getCurrentTableData ( ) . element || { } ) [ "_listing" ] ) {
206
+ [ ] . slice . call ( ( table . rows [ 0 ] || { cells : [ ] } ) . cells ) . forEach ( function ( e ) {
207
+ hw += e . colSpan || 1 ;
208
+ } ) ;
209
+ }
206
210
207
211
return { width : hw , height : hh } ;
208
212
@@ -451,7 +455,9 @@ PivotView.prototype._cellClickHandler = function (cell, x, y, event, drillThroug
451
455
f1 = data . rawData [ y ] [ data . info . leftHeaderColumnsNumber - 1 ] . source . path ;
452
456
f2 = data . rawData [ data . info . topHeaderRowsNumber - 1 - ATTACH_TOTALS ] [ x ] . source . path ;
453
457
} catch ( e ) {
454
- console . warn ( "Unable to get filters for cell (%d, %d)" , x , y ) ;
458
+ if ( this . controller . CONFIG [ "logs" ] ) {
459
+ console . warn ( "Unable to get filters for cell (%d, %d)" , x , y ) ;
460
+ }
455
461
}
456
462
457
463
if ( f1 ) f . push ( f1 ) ;
@@ -1339,6 +1345,7 @@ PivotView.prototype.renderRawData = function (data) {
1339
1345
1340
1346
container [ "_primaryColumns" ] = primaryColumns ;
1341
1347
container [ "_primaryRows" ] = primaryRows ;
1348
+ container [ "_listing" ] = LISTING ;
1342
1349
1343
1350
this . recalculateSizes ( container ) ;
1344
1351
0 commit comments