Skip to content

Commit 5fb219e

Browse files
committed
fix: missing size
1 parent 11546d8 commit 5fb219e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/components/DynamicScrollerItem.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,14 @@ export default {
7878
}
7979
}
8080
81-
if (value && this.$_pendingVScrollUpdate === this.id) {
82-
this.updateSize()
83-
}
84-
8581
if (this.vscrollResizeObserver) {
8682
if (value) {
8783
this.observeSize()
8884
} else {
8985
this.unobserveSize()
9086
}
87+
} else if (value && this.$_pendingVScrollUpdate === this.id) {
88+
this.updateSize()
9189
}
9290
},
9391
},
@@ -164,7 +162,6 @@ export default {
164162
},
165163
166164
computeSize (id) {
167-
if (this.vscrollResizeObserver) return
168165
this.$nextTick(() => {
169166
if (this.id === id) {
170167
const width = this.$el.offsetWidth

0 commit comments

Comments
 (0)