Fix window height of new toot when close window with poll

This commit is contained in:
AkiraFukushima 2020-09-17 23:44:31 +09:00
parent 02c2a17991
commit f1e7da5354
1 changed files with 2 additions and 0 deletions

View File

@ -254,12 +254,14 @@ export default {
methods: {
close() {
this.filteredAccount = []
const pollHeight = this.$refs.poll ? this.$refs.poll.$el.offsetHeight : 0
this.openPoll = false
this.polls = []
this.pollExpire = {
label: this.$t('modals.new_toot.poll.expires.1_day'),
value: 3600 * 24
}
this.statusHeight = this.statusHeight + pollHeight
this.$store.dispatch('TimelineSpace/Modals/NewToot/resetMediaCount')
this.$store.dispatch('TimelineSpace/Modals/NewToot/closeModal')
},