-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Fix ColorPicker margin theme property #78468
Conversation
Tested and seems to work, what is the |
|
Not sure how you tested or if it's meant to work this way but I just tried putting multiple colorpickers into an HBoxContainer and changing the margin override did nothing. Without this PR it moves the colorpicker down and to right without claiming more space which is also incorrect. |
Works correctly for me godot.windows.editor.dev.x86_64_1Knf3ENqMj.mp4 |
Huh, I'll recompile and retest soon. If I get different results again I'll post a scene/project file, could you post yours? |
Pretty sure it works in a fresh project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems pretty straightforward. The original implementation looks super weird.
Thanks! |
Fixes #62937
Supersedes #76567
Changing the base type would break compatibility, so instead I just added another VBoxContainer inside MarginContainer inside ColorPicker. This is the rare occurrence where node's internal structure changes.