From b85597b15d49c45a9ba26a64d758a765dd6c2709 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 7 Jun 2018 01:00:38 +0900 Subject: [PATCH] Fix glitch --- src/client/app/desktop/views/pages/deck/deck.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/client/app/desktop/views/pages/deck/deck.vue b/src/client/app/desktop/views/pages/deck/deck.vue index ef54dd7fbd..b876dec103 100644 --- a/src/client/app/desktop/views/pages/deck/deck.vue +++ b/src/client/app/desktop/views/pages/deck/deck.vue @@ -29,12 +29,14 @@ export default Vue.extend({ XNotificationsColumn, XWidgetsColumn }, + computed: { columns() { if (this.$store.state.settings.deck == null) return []; return this.$store.state.settings.deck.columns; } }, + created() { if (this.$store.state.settings.deck == null) { const deck = { @@ -63,6 +65,14 @@ export default Vue.extend({ } }, + mounted() { + document.documentElement.style.overflow = 'hidden'; + }, + + beforeDestroy() { + document.documentElement.style.overflow = 'auto'; + }, + methods: { add() { this.os.new(Menu, {