Changing size of color_rect and hboxcontainer don't update (stay the same)

Godot Version

v4.5.1

Question

Hey, I’m trying to change color_rect and hboxcontainer sizes in script, but no matter what I do it just don’t change. here is my code:

here is print outcome: “ (430.0, 70.0) | 330.0 “

and here is how it’s looks like

Thanks anyone who will try to help

1 Like

How are you running this? Is this scene instantiated into some other scene?

1 Like

I have a similar question to @normalized, I ran a setup of what you gave, and it worked out fine. It may have been my lack of knowledge of the project and it’s nodes that caused an incorrect modification in my recreation that made it work as you intended.
(Sadly due to 8MB file limit and lack of zip file compatibility, I cannot upload the video of my test. However, I can upload a list of changes I made to your images and/or a burst of pictures of my test if needed)
Lore1 and Lore2 have scripts as well, could you show or describe what is going on in there? Same with the button and it’s child.

1 Like

HBoxContainers can’t be smaller than their children. Maybe the issue is that you’re trying to make them too small?

3 Likes

Hey sorry you all for being late with answer, yea it was my mistake that I use it as secene in other scene it was limiting it. I was making it late at night and I just give up after only 1h, I shoud have try a little harder then posting this question here, sorry :laughing:

1 Like