0 votes

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?

asked Mar 30, 2019 in Engine by fractile (53 points)

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

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

try remove margin container if you have one.

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.

popup only should work too. :) good luck

I filed a bug on PopupPanel behavior: https://github.com/godotengine/godot/issues/27555

As a workaround I changed my popups to PopupDialog nodes.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.