Re-render compose window using v-if for resize handler event

This commit is contained in:
AkiraFukushima 2020-09-21 18:10:45 +09:00
parent 025b8c45c1
commit 56e42af346
1 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@
<el-dialog
:title="$t('modals.new_toot.title')"
:visible.sync="newTootModal"
v-if="newTootModal"
:before-close="closeConfirm"
width="600px"
class="new-toot-modal"
@ -239,7 +240,9 @@ export default {
},
mounted() {
Event.$on('image-uploaded', () => {
this.statusHeight = this.statusHeight - this.$refs.preview.offsetHeight
if (this.$refs.preview) {
this.statusHeight = this.statusHeight - this.$refs.preview.offsetHeight
}
})
},
watch: {