UI control positioning blew up after upgrade from 3.0 to 3.1

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By fractile

After upgrade to 3.1, all my controls inside Popups are streched to fill the whole popup. The ones inside GridContainer seems to be nearly where they were before, but any control directly as Popup’s child get stretched to Popup’s size.

I have manually moved/scaled them back to where they should be in the editor, but when the app is run, they again fill the whole Popup.

Is there some known change that is causing this?

happen to me too. but now much easy to use, u can now put scrollbar in V/Hbox container.

potatobanana | 2019-03-30 15:51

So how do I make the buttons stay in their place? Is it not possible to manually (without containers) position them anymore?

fractile | 2019-03-30 16:00

try remove margin container if you have one.

potatobanana | 2019-03-31 05:58

I even removed the sibling GridContainer, so that the button was the only child of PopupPanel and still the button filled the entire panel at run-time. It happens with new projects as well.

Edit: I changed the popup node type from PopupPanel to PopupDialog and positioning now works as expected.

fractile | 2019-03-31 08:18

popup only should work too. :slight_smile: good luck

potatobanana | 2019-03-31 12:36

I filed a bug on PopupPanel behavior: A button inside PopupPanel always gets stretched to fill the whole panel · Issue #27555 · godotengine/godot · GitHub

As a workaround I changed my popups to PopupDialog nodes.

fractile | 2019-04-01 14:23