From a7f319c5c75765fa28fe9d069a47966498019a9e Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Sun, 27 Jun 2021 15:59:44 +0200 Subject: [PATCH] Fix mobile view --- frontend/src/lib/components/facilmap/facilmap.ts | 1 + frontend/src/lib/components/search-form/search-form-tab.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/facilmap/facilmap.ts b/frontend/src/lib/components/facilmap/facilmap.ts index 39493e51..9691607b 100644 --- a/frontend/src/lib/components/facilmap/facilmap.ts +++ b/frontend/src/lib/components/facilmap/facilmap.ts @@ -66,6 +66,7 @@ export default class FacilMap extends Vue { mounted(): void { window.addEventListener("resize", this.handleResize); + this.handleResize(); } beforeDestroy(): void { diff --git a/frontend/src/lib/components/search-form/search-form-tab.ts b/frontend/src/lib/components/search-form/search-form-tab.ts index 289ec2f7..d43b91af 100644 --- a/frontend/src/lib/components/search-form/search-form-tab.ts +++ b/frontend/src/lib/components/search-form/search-form-tab.ts @@ -42,7 +42,7 @@ export default class SearchFormTab extends Vue { handleSetQuery(query: string, zoom = false, smooth = true): void { this.searchForm.setSearchString(query); this.searchForm.search(zoom, undefined, smooth); - this.mapContext.$emit("fm-search-box-show-tab", `fm${this.context.id}-search-form-tab`); + this.mapContext.$emit("fm-search-box-show-tab", `fm${this.context.id}-search-form-tab`, !!query); } } \ No newline at end of file