How do you get element dimensions without callback/closure hell? #9536
Unanswered
trainbolt
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is obviously not optimal.
It would be nice to be able to get it more like:
But of course, this does not work.
So... 1. How do you avoid the first code, and 2. Is it possible to have it more like the second code?
EDIT
Also, before someone might suggest... I can't simply scroll to the element because part of it will be hidden behind the header element.
Beta Was this translation helpful? Give feedback.
All reactions