Fixed list minimum bounds calculation when not collapsed

This commit is contained in:
Sasha Koshka 2023-01-24 16:10:25 -05:00
parent 28701d01ab
commit 68f1d052d2

View File

@ -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)