Fix EditorObjectSelector popup size

This commit is contained in:
Giganzo 2025-02-19 05:35:06 +01:00 committed by Rémi Verschelde
parent 03bd8ba9c2
commit d8376e6256
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -99,10 +99,7 @@ void EditorObjectSelector::_show_popup() {
Point2 gp = get_screen_position(); Point2 gp = get_screen_position();
gp.y += size.y; gp.y += size.y;
sub_objects_menu->set_position(gp); sub_objects_menu->popup(Rect2(gp, Size2(size.width, 0)));
sub_objects_menu->set_size(Size2(size.width, 1));
sub_objects_menu->popup();
} }
void EditorObjectSelector::_about_to_show() { void EditorObjectSelector::_about_to_show() {