mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Remove set_as_minsize()
This commit is contained in:
@@ -175,7 +175,7 @@ void EditorPropertyArray::_change_type(Object *p_button, int p_index) {
|
||||
Button *button = Object::cast_to<Button>(p_button);
|
||||
changing_type_index = p_index;
|
||||
Rect2 rect = button->get_screen_rect();
|
||||
change_type->set_as_minsize();
|
||||
change_type->reset_size();
|
||||
change_type->set_position(rect.get_end() - Vector2(change_type->get_contents_minimum_size().x, 0));
|
||||
change_type->popup();
|
||||
}
|
||||
@@ -751,7 +751,7 @@ void EditorPropertyDictionary::_change_type(Object *p_button, int p_index) {
|
||||
Button *button = Object::cast_to<Button>(p_button);
|
||||
|
||||
Rect2 rect = button->get_screen_rect();
|
||||
change_type->set_as_minsize();
|
||||
change_type->reset_size();
|
||||
change_type->set_position(rect.get_end() - Vector2(change_type->get_contents_minimum_size().x, 0));
|
||||
change_type->popup();
|
||||
changing_type_index = p_index;
|
||||
|
||||
Reference in New Issue
Block a user