Fix window height of new toot when close window with spoiler

This commit is contained in:
AkiraFukushima 2020-09-17 23:53:42 +09:00
parent f1e7da5354
commit 2327acd3c5
1 changed files with 4 additions and 0 deletions

View File

@ -254,6 +254,10 @@ export default {
methods: {
close() {
this.filteredAccount = []
const spoilerHeight = this.$refs.spoiler ? this.$refs.spoiler.offsetHeight : 0
this.showContentWarning = false
this.spoiler = ''
this.statusHeight = this.statusHeight + spoilerHeight
const pollHeight = this.$refs.poll ? this.$refs.poll.$el.offsetHeight : 0
this.openPoll = false
this.polls = []