-
How to get width or height of a UI element?
I am making a toolbar with flexible UI so that width of some elements can vary.
I want to make some kind of range selector diagram controlled by inputs. Elements on left hand and right hand sides must have some margin based on percentage.
To calculate these margins, I need to get width of a parent element (in my case, just group). But when I try to do that, I always get that “undefined” nonsense. Is there any way to get width of a group element dynamically?
Thank you.