summaryrefslogtreecommitdiffstats
path: root/scene
diff options
context:
space:
mode:
authorClay John <claynjohn@gmail.com>2024-10-17 16:47:11 -0700
committerGitHub <noreply@github.com>2024-10-17 16:47:11 -0700
commitbe9e42c6a4aec9fbf1eac2cc281c5750e95faf03 (patch)
treeb8a591e11e36c5fdacf25337dbc07b62137c5306 /scene
parentc6b94ca9b4a0df81765aaba1babb8e6a0c0d8a93 (diff)
parent84b15a2ea4ca0239740b6ee2399a49b995159f9c (diff)
downloadredot-engine-be9e42c6a4aec9fbf1eac2cc281c5750e95faf03.tar.gz
Merge pull request #97888 from Gamemap/Itemlist-fix-right-padding
ItemList - Fix right padding missing
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/item_list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp
index f3cf29d0cf..1ba5ef309b 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;
}