From 53bb5012b9401c9d989fb38a55c0704d7d5c7135 Mon Sep 17 00:00:00 2001 From: fuyu <54523771+mfmfuyu@users.noreply.github.com> Date: Fri, 7 Feb 2020 11:39:44 +0900 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E3=83=AD=E3=82=B0=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E6=99=82=E3=81=AB=E3=82=A8=E3=83=A9=E3=83=BC=E3=81=8C=E7=99=BA?= =?UTF-8?q?=E7=94=9F=E3=81=97=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20(#5872)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/app.vue b/src/client/app.vue index 61fd1ec38..5237eef17 100644 --- a/src/client/app.vue +++ b/src/client/app.vue @@ -248,6 +248,8 @@ export default Vue.extend({ // https://stackoverflow.com/questions/33891709/when-flexbox-items-wrap-in-column-mode-container-does-not-grow-its-width if (this.enableWidgets) { setInterval(() => { + if (!this.$refs.widgetsEditButton) return; + const width = this.$refs.widgetsEditButton.offsetLeft + 300; this.$refs.widgets.style.width = width + 'px'; }, 1000); @@ -258,7 +260,7 @@ export default Vue.extend({ help() { this.$router.push('/docs/keyboard-shortcut'); }, - + back() { if (this.canBack) window.history.back(); },