diff --git a/editor/inspector/editor_properties_array_dict.cpp b/editor/inspector/editor_properties_array_dict.cpp index 0a6d34c8ac..1f132b9427 100644 --- a/editor/inspector/editor_properties_array_dict.cpp +++ b/editor/inspector/editor_properties_array_dict.cpp @@ -263,7 +263,8 @@ void EditorPropertyArray::_update_slots_size() { Ref font = theme_cache.font; int font_size = theme_cache.font_size; - name_size = slots[0].reorder_button->get_minimum_size().x + theme_cache.horizontal_separation + font->get_string_size(ms, HORIZONTAL_ALIGNMENT_LEFT, -1, font_size).x; + int half_padding = theme_cache.padding / 2; + name_size = slots[0].reorder_button->get_minimum_size().x + theme_cache.horizontal_separation + half_padding + font->get_string_size(ms, HORIZONTAL_ALIGNMENT_LEFT, -1, font_size).x; } slot.prop->set_name_fixed_size(name_size); }