Skip to content
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

Anchor presets positions don't adapt to changed scale of object #85668

Closed
AriBarzilai opened this issue Dec 2, 2023 · 1 comment
Closed

Anchor presets positions don't adapt to changed scale of object #85668

AriBarzilai opened this issue Dec 2, 2023 · 1 comment

Comments

@AriBarzilai
Copy link

Godot version

v4.1.3.stable.mono

System information

Godot v4.1.3.stable.mono - Windows 10.0.22621 - Vulkan (Compatibility) - AMD Radeon(TM) Graphics (Advanced Micro Devices, Inc.; 31.0.12042.2002) - AMD Ryzen 5 7520U with Radeon Graphics (8 Threads)

Issue description

The anchor presets fail to take into account the new size of a node after changing it via scale, leading to things like the "center" preset anchor being off-center and often cut off the screen.

Steps to reproduce

Create a node. Change its scale. Set anchor preset to 'center' in the inspector

Minimal reproduction project

Create new project. Create a node (and, for example, set its size to be the size of your viewport).
Now change its scale (for example, to scale 0.8, or to 1.5).
Set an anchor preset in the inspector (for example, set to anchor preset 'center')

@Calinou
Copy link
Member

Calinou commented Dec 16, 2023

Thanks for the report! Consolidating in #19068.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants