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 f2a2282 commit 8445ac1Copy full SHA for 8445ac1
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "vue-windowing",
3
- "version": "0.6.0",
+ "version": "0.6.1",
4
"description": "Set of components used for virtualizing DOM",
5
"main": "dist/vue-windowing.ssr.js",
6
"browser": "dist/vue-windowing.esm.js",
src/components/AutoHeightMeasurer.vue
@@ -23,10 +23,18 @@ export default {
23
default: 0,
24
},
25
26
+ updated() {
27
+ if (this.$el) {
28
+ this.onHeightChange(this.$el.offsetHeight);
29
+ }
30
+ },
31
methods: {
32
onResize(entry) {
33
const { height } = entry.contentRect;
34
35
+ this.onHeightChange(height);
36
37
+ onHeightChange(height) {
38
if (height !== this.height && height !== 0) {
39
this.$emit('height', {
40
index: this.index,
0 commit comments