Fix window height of new toot when close window with metidas

This commit is contained in:
AkiraFukushima 2020-09-17 23:59:18 +09:00
parent 2327acd3c5
commit e179312393
1 changed files with 2 additions and 0 deletions

View File

@ -266,6 +266,8 @@ export default {
value: 3600 * 24
}
this.statusHeight = this.statusHeight + pollHeight
const attachmentHeight = this.$refs.preview ? this.$refs.preview.offsetHeight : 0
this.statusHeight = this.statusHeight + attachmentHeight
this.$store.dispatch('TimelineSpace/Modals/NewToot/resetMediaCount')
this.$store.dispatch('TimelineSpace/Modals/NewToot/closeModal')
},