From 68f1d052d27ab874d1398152ad181f7bbf5422fb Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Tue, 24 Jan 2023 16:10:25 -0500 Subject: [PATCH] Fixed list minimum bounds calculation when not collapsed --- elements/basic/list.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/elements/basic/list.go b/elements/basic/list.go index 13551e1..a1a12a5 100644 --- a/elements/basic/list.go +++ b/elements/basic/list.go @@ -384,11 +384,10 @@ func (element *List) updateMinimumSize () { minimumWidth = entryWidth } } - minimumWidth += theme.Padding() } if minimumHeight == 0 { - minimumHeight = element.contentHeight + theme.Padding() * 2 + minimumHeight = element.contentHeight + theme.Padding() } element.core.SetMinimumSize(minimumWidth, minimumHeight)