非ログイン時にエラーが発生していたのを修正 (#5872)

This commit is contained in:
fuyu 2020-02-07 11:39:44 +09:00 committed by GitHub
parent 70fad3b3d7
commit 1f425ac932

View File

@ -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);