Merge pull request #1959 from h3poteto/iss-1936
closes #1936 Fix compose window height when add poll options
This commit is contained in:
commit
b686abfe9c
|
@ -407,11 +407,17 @@ export default {
|
||||||
this.statusHeight = this.statusHeight + previousHeight
|
this.statusHeight = this.statusHeight + previousHeight
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
addPoll() {
|
async addPoll() {
|
||||||
this.polls.push('')
|
const previousPollHeight = this.$refs.poll.$el.offsetHeight
|
||||||
|
await this.polls.push('')
|
||||||
|
const diff = this.$refs.poll.$el.offsetHeight - previousPollHeight
|
||||||
|
this.statusHeight = this.statusHeight - diff
|
||||||
},
|
},
|
||||||
removePoll(id) {
|
async removePoll(id) {
|
||||||
this.polls.splice(id, 1)
|
const previousPollHeight = this.$refs.poll.$el.offsetHeight
|
||||||
|
await this.polls.splice(id, 1)
|
||||||
|
const diff = previousPollHeight - this.$refs.poll.$el.offsetHeight
|
||||||
|
this.statusHeight = this.statusHeight + diff
|
||||||
},
|
},
|
||||||
changeExpire(obj) {
|
changeExpire(obj) {
|
||||||
this.pollExpire = obj
|
this.pollExpire = obj
|
||||||
|
|
Loading…
Reference in New Issue