From fc05540404cd53070b0c419ba50f9d24ceaa3b2b Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 9 Dec 2018 23:12:08 +0900 Subject: [PATCH] Fix bug? --- src/client/app/mobile/views/components/ui.header.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/app/mobile/views/components/ui.header.vue b/src/client/app/mobile/views/components/ui.header.vue index 32ec0a9b7..9e06bcf97 100644 --- a/src/client/app/mobile/views/components/ui.header.vue +++ b/src/client/app/mobile/views/components/ui.header.vue @@ -45,7 +45,9 @@ export default Vue.extend({ }, mounted() { - this.$store.commit('setUiHeaderHeight', this.$refs.root.offsetHeight); + this.$nextTick(() => { + this.$store.commit('setUiHeaderHeight', this.$refs.root.offsetHeight); + }); if (this.$store.getters.isSignedIn) { this.connection = this.$root.stream.useSharedConnection('main');