diff options
author | Clay John <claynjohn@gmail.com> | 2024-10-17 16:47:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-17 16:47:11 -0700 |
commit | be9e42c6a4aec9fbf1eac2cc281c5750e95faf03 (patch) | |
tree | b8a591e11e36c5fdacf25337dbc07b62137c5306 /scene | |
parent | c6b94ca9b4a0df81765aaba1babb8e6a0c0d8a93 (diff) | |
parent | 84b15a2ea4ca0239740b6ee2399a49b995159f9c (diff) | |
download | redot-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.cpp | 2 |
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; } |