Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Use with v-for, set the height of the first element #11

Open
jrpersico opened this issue Apr 15, 2020 · 1 comment
Open

Use with v-for, set the height of the first element #11

jrpersico opened this issue Apr 15, 2020 · 1 comment

Comments

@jrpersico
Copy link

Hi,

When I use vue-match-heights with v-for, it applies the height of my first element to the others.

How to run it once the v-for has been rendered?

I use it in bootstrap-vue carousel.

@aruspeter-octopus
Copy link

adding a timeout worked for me

mounted() {
setTimeout(() => {
document.dispatchEvent(new CustomEvent('matchheight', {}));
}, 200);
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants