Fix window height of new toot when close window with metidas
This commit is contained in:
parent
2327acd3c5
commit
e179312393
|
@ -266,6 +266,8 @@ export default {
|
||||||
value: 3600 * 24
|
value: 3600 * 24
|
||||||
}
|
}
|
||||||
this.statusHeight = this.statusHeight + pollHeight
|
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/resetMediaCount')
|
||||||
this.$store.dispatch('TimelineSpace/Modals/NewToot/closeModal')
|
this.$store.dispatch('TimelineSpace/Modals/NewToot/closeModal')
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue