Godot Version
4.3
Question
I want to make some speech bubbles and have a layout where I can write some text and a NinePatchRect scales with it.
My first setup was to have a NinePatchRect with a Label as the child. That didn’t work and the size of the label didn’t change the size of the NinePatchRect.
However, when I created a PanelContainer with a NinePatchRect and Label as children it did work, I just had to hide the background of the PanelContainer.
While this does work it left me a bit confused: Is the PanelContainer the only container that scales with the size of the contained children? Is there some general logic?