diff options
author | Gamemap <71942164+Gamemap@users.noreply.github.com> | 2024-10-06 17:34:33 +0200 |
---|---|---|
committer | Gamemap <71942164+Gamemap@users.noreply.github.com> | 2024-10-06 17:34:33 +0200 |
commit | 84b15a2ea4ca0239740b6ee2399a49b995159f9c (patch) | |
tree | 3ce23c299385fe5339898e06ca3bcdf5410048ba | |
parent | db66bd35af704fe0d83ba9348b8c50a48e51b2ba (diff) | |
download | redot-engine-84b15a2ea4ca0239740b6ee2399a49b995159f9c.tar.gz |
ItemList - Fix right padding missing
-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; } |