From 84b15a2ea4ca0239740b6ee2399a49b995159f9c Mon Sep 17 00:00:00 2001 From: Gamemap <71942164+Gamemap@users.noreply.github.com> Date: Sun, 6 Oct 2024 17:34:33 +0200 Subject: [PATCH] ItemList - Fix right padding missing --- scene/gui/item_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index f3cf29d0cf9..1ba5ef309b0 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -1056,7 +1056,7 @@ void ItemList::_notification(int p_what) { scroll_bar->set_anchor_and_offset(SIDE_BOTTOM, ANCHOR_END, -theme_cache.panel_style->get_margin(SIDE_BOTTOM)); Size2 size = get_size(); - int width = size.width - theme_cache.panel_style->get_margin(SIDE_RIGHT); + int width = size.width - theme_cache.panel_style->get_minimum_size().width; if (scroll_bar->is_visible()) { width -= scroll_bar_minwidth; }