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

Weird behaviour when setting the rect size via code and anchors #15061

Open
1 task done
YeldhamDev opened this issue Dec 26, 2017 · 3 comments
Open
1 task done

Weird behaviour when setting the rect size via code and anchors #15061

YeldhamDev opened this issue Dec 26, 2017 · 3 comments

Comments

@YeldhamDev
Copy link
Member

YeldhamDev commented Dec 26, 2017

Godot version:
master: 37aab45

Issue description:
I have an anchored control set fully to Below, but I also have a signal that manually changes the rect_size.x when its parent is resized. This makes the anchor be completely ignored.

Minimal reproduction project:
Example.zip

  • I searched the existing GitHub issues for potential duplicates.
@KoBeWi
Copy link
Member

KoBeWi commented Nov 22, 2020

@YeldhamDev Is this still valid in 3.2.4 beta2?
I checked the project, but not sure what is the issue.

@YeldhamDev
Copy link
Member Author

If I remember correctly:
The problem is that if the bit of code in the script is uncommented, the y value of TextureRect stops being updated, even if it just overrides the x value.

And from testing right now, it seems that it still occurs.

@YeldhamDev YeldhamDev added this to the 4.0 milestone Jul 30, 2022
@YeldhamDev
Copy link
Member Author

Still happens in c2d55a4, the example has been updated.

@YuriSizov YuriSizov modified the milestones: 4.0, 4.x Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

3 participants