godot icon indicating copy to clipboard operation
godot copied to clipboard

Fix EditorObjectSelector popup size

Open Giganzo opened this issue 10 months ago • 2 comments

PR https://github.com/godotengine/godot/pull/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 avatar Feb 21 '25 12:02 Giganzo

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

KoBeWi avatar Feb 21 '25 12:02 KoBeWi

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.

Giganzo avatar Feb 21 '25 13:02 Giganzo

Thanks!

akien-mga avatar Jun 12 '25 21:06 akien-mga