Merge pull request #1790 from h3poteto/fix/window-height-contents

Re-render compose window using v-if for resize handler event
This commit is contained in:
AkiraFukushima 2020-09-21 18:17:10 +09:00 committed by GitHub
commit d2fb794876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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', () => {
if (this.$refs.preview) {
this.statusHeight = this.statusHeight - this.$refs.preview.offsetHeight
}
})
},
watch: {