-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Centering a scaled container centers relative to the original size of the container #85091
Comments
This also affects other canvas items - tested with scaled panel, label, control in place of container |
Lines 1227 to 1229 in 80de898
|
@Sauermann @AThousandShips I think this is a duplicate of Also I see a similar looking issue opened 14d ago I guess mine and the more recent ticket can be closed |
Thanks for the report! Consolidating in #19068. |
I think this might be also related: |
Godot version
v4.1.3.stable.official [f06b6836a]
System information
Godot v4.1.3.stable - Windows 10.0.22621 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 3070 (NVIDIA; 31.0.15.3699) - Intel(R) Core(TM) i7-10700F CPU @ 2.90GHz (16 Threads)
Issue description
I am expecting a scaled container to be correctly centered relative to its scaled size using center for anchor preset and alignment but it seems to retain the center coords for the original size
Steps to reproduce
Tested with box containers:
Expected:
Center is relevant to scaled container
Actual:
Center is relevant to original container size
Expected result would be similar to manually increasing container size and centering as below:
Actual result is offset:
Minimal reproduction project
The text was updated successfully, but these errors were encountered: