How to get window size to scale panels accordingly. #2015
Answered
by
rik-rosseel
rik-rosseel
asked this question in
Q&A
-
I would like to make an app with a side panel and a main panel. I'm trying to get the side panel to be a percentage of the entire window (e.g.: 20% of window width). How would I be able to get the window size to make the sidepanel bigger or smaller if the window is resized? |
Beta Was this translation helpful? Give feedback.
Answered by
rik-rosseel
Sep 6, 2022
Replies: 1 comment 4 replies
-
After some more digging not knowing where to look I stumbled on the answer: The winow size is under |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
rik-rosseel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After some more digging not knowing where to look I stumbled on the answer: The winow size is under
frame.info().window_info.size
.