From c281a57a6ccf60e5a5602df72bf0eb2c353e1be8 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 21 Sep 2014 17:19:21 +0200 Subject: [PATCH] * Set a minimum size (& hint) to make the layout on artist page behave. --- src/libtomahawk/playlist/GridView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/playlist/GridView.cpp b/src/libtomahawk/playlist/GridView.cpp index 732013df4..31375f7f7 100644 --- a/src/libtomahawk/playlist/GridView.cpp +++ b/src/libtomahawk/playlist/GridView.cpp @@ -303,7 +303,10 @@ GridView::verifySize() else if ( newHeight > 0 ) { m_proxyModel->setMaxVisibleItems( m_model->rowCount( QModelIndex() ) - overlapRows ); - setFixedHeight( newHeight + spacing() ); + + m_sizeHint = QSize( QListView::sizeHint().width(), newHeight + spacing() ); + updateGeometry(); + setMinimumHeight( newHeight + spacing() ); } }