Fix being able to delete new key/value from dictionary editor.

This commit is contained in:
ajreckof 2023-06-05 05:38:09 +02:00
parent db5113de36
commit 31022d96a5
1 changed files with 1 additions and 0 deletions

View File

@ -744,6 +744,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_item_disabled(change_type->get_item_index(Variant::VARIANT_MAX), p_index < 0);
change_type->reset_size();
change_type->set_position(rect.get_end() - Vector2(change_type->get_contents_minimum_size().x, 0));
change_type->popup();