We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e175f4d commit 95ce62eCopy full SHA for 95ce62e
src/components/DynamicScrollerItem.vue
@@ -110,10 +110,6 @@ export default {
110
}
111
},
112
113
- getBounds () {
114
- return this.$el.getBoundingClientRect()
115
- },
116
-
117
updateWatchData () {
118
if (this.watchData) {
119
this.$_watchData = this.$watch('data', () => {
@@ -143,7 +139,10 @@ export default {
143
139
computeSize (id) {
144
140
this.$nextTick(() => {
145
141
if (this.id === id) {
146
- const bounds = this.getBounds()
142
+ const bounds = {
+ width: this.$el.offsetWidth,
+ height: this.$el.offsetHeight,
+ }
147
const size = Math.round(this.vscrollParent.direction === 'vertical' ? bounds.height : bounds.width)
148
if (size && this.size !== size) {
149
if (this.vscrollParent.$_undefinedMap[id]) {
0 commit comments