godot
godot copied to clipboard
[3.x] Automatically stretch ViewportContainer when window is set to `STRETCH_MODE_2D`
Fixes https://github.com/godotengine/godot/issues/61301
This PR is for 3.x, but the issue is also present in 4.x.
In 4.X, due to stretch_mode being associated with the new Window type, I think there should be some way to access the current Window from CanvasItems, but I'm not sure it exists?