summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-19 17:55:55 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-19 17:55:55 +0900
commit8d77e2ba22147052e395f7c950aa561809fc9b46 (patch)
treee8ca43a4f831f4242dee8d275a733a8c7f862230 /src
parent:art: (diff)
downloadsharkey-8d77e2ba22147052e395f7c950aa561809fc9b46.tar.gz
sharkey-8d77e2ba22147052e395f7c950aa561809fc9b46.tar.bz2
sharkey-8d77e2ba22147052e395f7c950aa561809fc9b46.zip
Fix bug
Diffstat (limited to 'src')
-rw-r--r--src/client/pages/index.home.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/pages/index.home.vue b/src/client/pages/index.home.vue
index 1005d4add2..f3bbd2d91b 100644
--- a/src/client/pages/index.home.vue
+++ b/src/client/pages/index.home.vue
@@ -98,6 +98,10 @@ export default Vue.extend({
}
},
+ mounted() {
+ this.width = this.$el.offsetWidth
+ },
+
methods: {
before() {
Progress.start();
@@ -108,7 +112,7 @@ export default Vue.extend({
},
queueUpdated(q) {
- this.width = this.$el.offsetWidth;
+ if (this.$el.offsetWidth !== 0) this.width = this.$el.offsetWidth;
this.queue = q;
},