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:
commit
d2fb794876
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue