Skip to content

Fix EditorObjectSelector popup size #103125

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

Merged
merged 1 commit into from
Jun 12, 2025

Conversation

Giganzo
Copy link
Contributor

@Giganzo Giganzo commented Feb 21, 2025

PR #101876 made the popup size for OptionButtons be as wide as the button itself.

This did not apply to EditorObjectSelectors PopupMenu. Becuase it's just a button that looks like an OptionButton.
This PR makes the Popup behave like it does for mentioned PR above.

Before:

Screencast_20250219_053311.webm

After:

Screencast_20250219_053329.webm

Another solution could probably be to change EditorObjectSelector to an OptionButton, but not sure why it's currently a Button and what affects that would have.

@Giganzo Giganzo requested review from a team as code owners February 21, 2025 12:40
@KoBeWi
Copy link
Member

KoBeWi commented Feb 21, 2025

It's Button probably for its style.
You could change it to OptionButton and make sure that it looks the same.

@Giganzo
Copy link
Contributor Author

Giganzo commented Feb 21, 2025

It's Button probably for its style. You could change it to OptionButton and make sure that it looks the same.

Think I understand why it's a button now.
The text and icon is not showing a selection in the dropdown but the currently selected object. So I don't think a change too a OptionButton would make sense here.

@akien-mga akien-mga force-pushed the editor-object-selector-popup branch from 5af969c to d8376e6 Compare June 12, 2025 15:30
@akien-mga akien-mga merged commit 7842a04 into godotengine:master Jun 12, 2025
39 of 40 checks passed
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants