From d7ae2751af946990306f51b1d5949c2caf5c60f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Thu, 4 Feb 2021 09:42:27 +0100 Subject: [PATCH] fix menu on ios --- docs/src/layouts/App/index.vue | 7 ++++--- docs/src/layouts/App/style.scss | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/src/layouts/App/index.vue b/docs/src/layouts/App/index.vue index e5b8684d..e2703ecf 100644 --- a/docs/src/layouts/App/index.vue +++ b/docs/src/layouts/App/index.vue @@ -202,10 +202,11 @@ export default { }, mounted() { - this.handleResize() - this.$nextTick(() => { + // what the hell is wrong with iOS safari + setTimeout(() => { + this.handleResize() this.initSearch() - }) + }, 0) window.addEventListener('resize', this.handleResize) }, diff --git a/docs/src/layouts/App/style.scss b/docs/src/layouts/App/style.scss index 98cab33b..a3741f88 100644 --- a/docs/src/layouts/App/style.scss +++ b/docs/src/layouts/App/style.scss @@ -3,6 +3,8 @@ $mobileBreakPoint: 600px; $menuBreakPoint: 800px; .app { + overflow: hidden; + &__navigation { position: fixed; display: flex;