godot icon indicating copy to clipboard operation
godot copied to clipboard

Canvas Layer size not updating after changing Viewport Size in Project Settings

Open its-blue opened this issue 3 years ago • 7 comments

Godot version

v4.0.beta6.official [7f8ecffa5]

System information

Windows 10

Issue description

The Canvas Layer does not update it's size after changing the Viewport Size in the Project Settings. To update the Canvas Layer size you need to uncheck visibility and check it again.

https://user-images.githubusercontent.com/106448197/204086339-37a6664b-37fd-4775-92ed-e590442bcb8b.mp4

Steps to reproduce

Create a scene -> Add Canvas Layer -> Add any UI Element -> Change the viewport size

The Canvas Layer Size does not update accordingly. It needs to be manually updated by toggling the visibility. Edit: Resizing the Inspector Window or restarting the Project also updates the Canvas Layer

Minimal reproduction project

N/A

its-blue avatar Nov 26 '22 11:11 its-blue

Can you still reproduce this in 4.0.3 and 4.1-beta3 or later?

akien-mga avatar Jun 23 '23 13:06 akien-mga

Yes, I could still reproduce this issue in Godot 4.0.3

its-blue avatar Jun 23 '23 15:06 its-blue

Not reproducable in Godot v4.3.dev (f8a2a9193) - Windows 10.0.22621 - GLES3 (Compatibility) - NVIDIA GeForce RTX 3060 Ti (NVIDIA; 31.0.15.4601) - 12th Gen Intel(R) Core(TM) i7-12700F (20 Threads)

jsjtxietian avatar Dec 15 '23 14:12 jsjtxietian

Can someone confirm this on 4.1.3 or 4.2.1? Otherwise this can be closed as fixed (otherwise the specific PR solving this should be identified and possibly cherry picked)

AThousandShips avatar Dec 15 '23 15:12 AThousandShips

Tested on Windows 10 on 4.2.1; experienced inconsistent latency in a brand new project. It ranged from being instant, to taking 15 seconds, to taking an indefinite amount of time. Toggling visibility instantly changes canvas, as well as zooming in/out.

vuff avatar Jan 21 '24 13:01 vuff

Reproducible on v4.3.beta.custom_build [93fc9b885] (on Windows 10). Note that the Canvas Layer updated after scrolling the mouse (the purple line moved), but children didn't update. After change the visibility, the child was resized.

https://github.com/godotengine/godot/assets/63407648/7666a5af-a6c4-4148-8715-92544fcd99d0

EAinsley avatar Jun 26 '24 14:06 EAinsley

I wanted to report this problem too, but I forgot...

JekSun97 avatar Jun 28 '24 22:06 JekSun97