From 20be94ee5136b7aea6c1db7babc8be0df17439eb Mon Sep 17 00:00:00 2001 From: Mark Furneaux Date: Wed, 14 May 2014 22:10:39 -0400 Subject: [PATCH] Change height on details change When the details change, the height is updated so if the details now span more or fewer lines we can accompany that --- src/widgets/nowplayingwidget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/widgets/nowplayingwidget.cpp b/src/widgets/nowplayingwidget.cpp index 74b529492..29ee593c4 100644 --- a/src/widgets/nowplayingwidget.cpp +++ b/src/widgets/nowplayingwidget.cpp @@ -264,6 +264,11 @@ void NowPlayingWidget::UpdateDetailsText() { html += "

"; details_->setHtml(html); + + // if something spans multiple lines the height needs to change + if (mode_ == LargeSongDetailsBelow) { + UpdateHeight(); + } } void NowPlayingWidget::ScaleCover() {