I had this issue back in Godot 3.5 and hoped that it'd be gone, but Panels and some other Control Nodes still resize magically when executing another scene. This is such weird behaviour, that I have no idea where it might come from. Has anyone ever seen such a thing happen before? Here is a video of the bug in acton: https://piped.kavin.rocks/watch?v=79DYDT5qngk

  • shotgun_crab@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 year ago

    Looks like a bug. Try creating a minimal reproduction project with just these 2 scenes and creating an issue on GitHub. Don't forget to mention that it happens in both Godot 3 and 4. Best of luck.

  • I Cast Fist@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    From a glance, I'd tell you to take a look at the Hbox Bottom -> Bottom first, the one that has both a Control and the BallsCounter. These box container nodes will auto expand to fit all content.

    An alternative would be scaling that Bottom node, instead of resizing it.

  • Cid@lemmy.sdf.org
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    My guess is it’s likely not a bug but an unexpected (by you) interaction of the tool script with whatever layout you’re doing.

    If you can post example code demonstrating the problem someone will probably be able to pinpoint what’s happening.