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

Fix EditorObjectSelector popup size #103125

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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.

2 participants