kopia lustrzana https://github.com/FacilMap/facilmap
Fix mobile view
rodzic
abf90b9192
commit
a7f319c5c7
|
@ -66,6 +66,7 @@ export default class FacilMap extends Vue {
|
|||
|
||||
mounted(): void {
|
||||
window.addEventListener("resize", this.handleResize);
|
||||
this.handleResize();
|
||||
}
|
||||
|
||||
beforeDestroy(): void {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
Ładowanie…
Reference in New Issue