fix bottom panel size after hiding empty cover thumbnail

This commit is contained in:
Drew Weymouth
2023-11-01 17:39:57 -07:00
parent 311175a721
commit 8c873881d3
+5
View File
@@ -57,6 +57,11 @@ func NewNowPlayingCard() *NowPlayingCard {
return n
}
func (n *NowPlayingCard) MinSize() fyne.Size {
// prop up height for when cover image is hidden
return fyne.NewSize(n.BaseWidget.MinSize().Width, 85)
}
func (n *NowPlayingCard) onShowCoverImage(*fyne.PointEvent) {
if n.OnShowCoverImage != nil {
n.OnShowCoverImage()