on xenial help sign in
No need to calculate the nColumns here

Just set the need to relayout and polish will do it

commitf110847f31667815f0bfd5ace004aa9a9eb6627c authorAlbert Astals <albert.astals@canonical.com> dateTue 17 Dec 2013, 09:58 (13 years ago) parent3a0ca4c
1 file changed+1−2
plugins/DashViews/verticaljournal.cpp+1−2
plugins/DashViews/verticaljournal.cpp+1−2
@@ -548,8 +548,7 @@ void VerticalJournal::componentComplete()
548548
549549 QQuickItem::componentComplete();
550550
551− const int nColumns = qMax(1., floor((double)(width() - m_horizontalSpacing) / (m_columnWidth + m_horizontalSpacing)));
552− m_columnVisibleItems.resize(nColumns);
551+ m_needsRelayout = true;
553552
554553 polish();
555554}