fix bottom panel size after hiding empty cover thumbnail
This commit is contained in:
@@ -57,6 +57,11 @@ func NewNowPlayingCard() *NowPlayingCard {
|
|||||||
return n
|
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) {
|
func (n *NowPlayingCard) onShowCoverImage(*fyne.PointEvent) {
|
||||||
if n.OnShowCoverImage != nil {
|
if n.OnShowCoverImage != nil {
|
||||||
n.OnShowCoverImage()
|
n.OnShowCoverImage()
|
||||||
|
|||||||
Reference in New Issue
Block a user