Autofilling containers #2390
Unanswered
stachursky444
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
Currently I use DearPyGui to write a little dev app for an embedded device. In my application I wanted to use a container with several widgets (mainly plots) filling all accessible space in it. I tried to set child widgets to have -1 size, but it caused that first item took whole surface, preventing others to come on a screen. Then I wrote my own resize handler to resize children on parent's resize, what works pretty well as long as parent's dimension isn't set to -1. What I noticed is that if one of the dimensions of the parent (width or height) is set to -1, then all its children get this value (-1 instead of recounted share of parent's surface) what causes the first child to claim all surface of the parent.
Summarizing:
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions