Merge pull request #97888 from Gamemap/Itemlist-fix-right-padding

ItemList - Fix right padding missing
This commit is contained in:
Clay John 2024-10-17 16:47:11 -07:00 committed by GitHub
commit be9e42c6a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}