guard for virtual height
This commit is contained in:
parent
b3754b26c4
commit
abe6af133f
1 changed files with 1 additions and 0 deletions
|
|
@ -622,6 +622,7 @@ const conversation = {
|
||||||
},
|
},
|
||||||
updateVirtualHeight() {
|
updateVirtualHeight() {
|
||||||
if (this.hide) return // no updates when not rendering
|
if (this.hide) return // no updates when not rendering
|
||||||
|
if (!this.status) return // not loaded yet
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.virtualHeight = this.$refs.body.getBoundingClientRect().height
|
this.virtualHeight = this.$refs.body.getBoundingClientRect().height
|
||||||
this.$emit('update:virtualHeight', {
|
this.$emit('update:virtualHeight', {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue