I wanted something like this:
With the hierarcy above, I wanted to set the
TextureRect's size on my own, not by the
HBoxContainer. But I also want to use the
HBoxContainer's behavior to layout it's children horizontally.
In other words, the
TextureRect should have a fixed transform size of (40, 40) and the Label size is dynamically sized based on it's text content. Just like flexbox in HTML, the parent size should match it's childrens.