Dynamically sized UIcontainer #458
-
Is there a way to dynamically size a UIcontainer according to what is inside it, similar to how a UIbutton does it ? cont = pygame_gui.core.ui_container.UIContainer(pygame.Rect((0,0),(-1, -1)), manager = manager) Then I create my buttons with their containers set as this one. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi MaelkMaelk, |
Beta Was this translation helpful? Give feedback.
Hi MaelkMaelk,
I am just a contributor to this project, but I had started work on a similar container with a pull request which is yet to be accepted. You can either wait for that to be accepted or copy the code from the pull request labeled UIAutoResizingContainer or similar.