Closed
Description
Hi ,I'm sorry to bring up the issue here, as the slack link in the README seems to have expired and I've tried several times but still can't access the community
I'm encountering an issue with Vue 2 and grid-stack when rendering components. Here's what I'm doing:
- Rendering components using
v-for
in the template - Initializing them as widgets with
makeWidget()
- Trying to get the widget's latest height/width(use this.$el.clientWidth) in grid-stack's
added
callback
The problem: I only get correct height/width when usingsetTimeout
, otherwise the values are incorrect.
Any suggestions to get accurate dimensions without relying onsetTimeout
?
Thanks in advance!