0 votes

Pretty simple to duplicate the problem I'm having. create a Popup node, add an HBoxContainer to it and a TextureRect to it, tiling the default icon.png. set all size flags to fill/expand, size the popup to the screen (my project is using disabled stretch settings), and of course call popup in the popup's _ready().

The questions are:
Why doesn't the HBox fill the popup?
Why do some control nodes have size flags if they are ignored?

If I'm not mistaken it wouldn't take more than a dozen lines to code the behavior I'm looking for, but then I would feel like I'm reinventing the wheel and not using the engine's built in methods/properties causing me to use a solution that may be less optimized than already exists.

Godot version 3.2.3-stable_win64
in Engine by (30 points)
edited by

I almost get the functionality I'm looking for when I make the popup a child of another container, but children of the popup still ignore the size flags

1 Answer

0 votes
Best answer

Think its been too long since I last looked at a tutorial. Use of anchors solves the problem

by (30 points)
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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.