Hello everybody; apologize for my bad English and a rather dumb question , in this images
As everybody can see, when the
Label
is more taller than the
TextureRect
(An image) then
TextureRect
would be adjusted so it can be tall as the
Label
in a
HBoxContainer
. How to fix this?
(Tree):
>Control
>>HBoxContainer
>>>TextureRect
>>>Label
This is because of the hboxcontainer, it fits all child nodes inside of it
Okay thank you, but may I ask how to fix it?
The TextureRect node has some properties for controlling how it is scaled/stretched/etc. in this sort of situation.
I suspect Expand Mode = Keep Size and Stretch Mode = Keep Centered will be what you need.
Hope this helps,
Martin
2 Likes
Thank you! Appreciate your help, I never thought of this, and I apologize if it was such a dumb question
2 Likes