Fix EditorObjectSelector popup size
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.
It's Button probably for its style. You could change it to OptionButton and make sure that it looks the same.
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.
Thanks!