BoxContainer updates it's actual size inconsistently

AmegatronAmegatron Posts: 1Member

Hello!
Having some experiments with Godot's GUI system, and faced this strange behavior of BoxContainers, for example - HBox and VBox Containers.

When changing Min Size of of their children by code, they change positions of other children properly in whole. But they seem to update their actual size very strangely if the internals became smaller. See this gif:

Here I adjust the min_size of one of the children while dragging the corner (my custon script). The outer red rectangle (ReferenceRect) copies the actual size of outer HBoxContainer. As you can see, it updates it's size inconsistently, one of the results of which is that the right label ("To The Right") is not properly centered vertically.

Is it an intended behavior which I don't yet understand, or it is a bug? Decided to discuss it here first to not "spam" the Issues on Github.

Comments

  • TwistedTwiglegTwistedTwigleg Posts: 3,093Admin

    Based on the GIF, I would say this is probably a bug. Have you tried it with the latest version of Godot, Godot 3.2.2? If the bug is still present there, I would suggest opening a bug report on GitHub.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file