From 6a4c61feb291cdb293a935c6c6ad573406a06d72 Mon Sep 17 00:00:00 2001 From: othman alzahrani Date: Sat, 13 Jun 2026 17:02:35 +0300 Subject: [PATCH] EditorPropertyArray clipping fix --- editor/inspector/editor_properties_array_dict.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }