Fix window height of new toot when close window with quoted status

This commit is contained in:
AkiraFukushima 2020-09-18 00:03:11 +09:00
parent e179312393
commit 025b8c45c1
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 quoteHeight = this.$refs.quote ? this.$refs.quote.$el.offsetHeight : 0
this.statusHeight = this.statusHeight + quoteHeight
const attachmentHeight = this.$refs.preview ? this.$refs.preview.offsetHeight : 0
this.statusHeight = this.statusHeight + attachmentHeight
this.$store.dispatch('TimelineSpace/Modals/NewToot/resetMediaCount')