From 2b5c901f3d7edfdd482a4a35fbe62008d5ffb138 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Thu, 8 Jan 2026 12:05:08 -0300 Subject: [PATCH] Fix text in `ItemList` being cutoff when it shouldn't --- scene/gui/item_list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index fe14b199b0..bf121bd261 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -1550,10 +1550,10 @@ void ItemList::_notification(int p_what) { if (icon_mode == ICON_MODE_TOP) { pos.x += Math::floor((items[i].rect_cache.size.width - icon_size.width) / 2); - text_ofs.y = icon_size.height + theme_cache.icon_margin * 2; + text_ofs.y = icon_size.height + theme_cache.icon_margin; } else { pos.y += Math::floor((items[i].rect_cache.size.height - icon_size.height) / 2); - text_ofs.x = icon_size.width + theme_cache.icon_margin * 2; + text_ofs.x = icon_size.width + theme_cache.icon_margin; } Rect2 draw_rect = Rect2(pos, icon_size);