Skip to content

Commit

Permalink
Fix: zoom to action from list
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbet committed Sep 13, 2024
1 parent 48e50b5 commit 817ca7e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/app/components/arlas-wui-root/arlas-wui-root.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,11 @@ export class ArlasWuiRootComponent implements OnInit, AfterViewInit, OnDestroy {
config.isDetailledGridOpen = true;
this.resultListConfigPerContId.set(this.previewListContrib.identifier, config);
this.resultlistService.toggleList();
setTimeout(() => this.timelineComponent.timelineHistogramComponent.resizeHistogram(), 100);
setTimeout(() => {
if (!!this.timelineComponent.timelineHistogramComponent) {
this.timelineComponent.timelineHistogramComponent.resizeHistogram();
}
}, 100);
}

public changeListResultMode(mode: ModeEnum, identifier: string) {
Expand Down Expand Up @@ -1173,7 +1177,7 @@ export class ArlasWuiRootComponent implements OnInit, AfterViewInit, OnDestroy {
}
} else {
const productTile = document.getElementById('grid-tile-' + id);
const isDetailledGridOpen = this.resultListComponent.isDetailledGridOpen;
const isDetailledGridOpen = this.resultListComponent?.isDetailledGridOpen;
if (!!productTile) {
productTile.click();
if (!isDetailledGridOpen) {
Expand Down Expand Up @@ -1448,7 +1452,7 @@ export class ArlasWuiRootComponent implements OnInit, AfterViewInit, OnDestroy {
case 'zoomToFeature':
if (!!mapContributor) {
// if detailed menu is not open when zoom to feature we reset identifer
this.detailedGridOpen = this.resultListComponent.isDetailledGridOpen;
this.detailedGridOpen = this.resultListComponent?.isDetailledGridOpen;
if (!this.detailedGridOpen) {
this._lastTileIdentifier = null;
}
Expand Down

0 comments on commit 817ca7e

Please sign in to comment.