How do I get the size of the current Widget/Its parent? #642
Unanswered
ciaransweet
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can't do it on init. It won't have a size until the layout process which happens on refresh. It should be available on the Widget's Mount event. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a scenario like so:
I'd like to know how I can determine the current widgets size and/or the size of the dock I guess?
I can see the Resize event sizes, but I've tried many combinations of
self.size
,view.size
etc and everything gives me back0
's across the board 😭Beta Was this translation helpful? Give feedback.
All reactions