Skip to content

Commit 66ae929

Browse files
authored
Merge pull request #2719 from IgniteUI/dTsvetkov/fix-data-analysis-context-button-master
fix(data-analysis): fix context button -master
2 parents a9fc501 + d0e1b23 commit 66ae929

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,10 @@ export class DataAnalysisDockManagerComponent implements OnInit, AfterViewInit,
454454
} else {
455455
cell = this.grid.getCellByColumn(this.rowIndex, this.grid.visibleColumns[this.colIndex].field);
456456
}
457+
458+
if (!cell) {
459+
return;
460+
}
457461
this.contextmenuX = cell.element.nativeElement.getClientRects()[0].right;
458462
this.contextmenuY = cell.element.nativeElement.getClientRects()[0].bottom;
459463
this.contextmenu = this.isWithInRange(cell.rowIndex, cell.visibleColumnIndex);

projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@ export class GridDynamicChartDataComponent implements OnInit, AfterViewInit, OnD
335335
} else {
336336
cell = this.grid.getCellByColumn(this.rowIndex, this.grid.visibleColumns[this.colIndex].field);
337337
}
338+
339+
if (!cell) {
340+
return;
341+
}
338342
this.contextmenuX = cell.element.nativeElement.getClientRects()[0].right;
339343
this.contextmenuY = cell.element.nativeElement.getClientRects()[0].bottom;
340344
this.contextmenu = this.isWithInRange(cell.rowIndex, cell.visibleColumnIndex);

0 commit comments

Comments
 (0)