Fix more tests
commit5405b007f8a308b318505027f59ace01ec28b961
authorAlbert Astals <albert.astals@canonical.com>
dateMon 17 Nov 2014, 13:14 (12 years ago)
parent2068555
plugins/Dash/abstractdashview.cpp+1−1
@@ -126,7 +126,7 @@ void AbstractDashView::setCacheBuffer(qreal buffer)
126126 if (m_buffer != buffer) {
127127 m_buffer = buffer;
128128 if (isComponentComplete()) {
129− relayout();
129+ polish();
130130 }
131131 emit cacheBufferChanged();
132132 }
tests/plugins/Dash/verticaljournaltest.qml+1
@@ -26,6 +26,7 @@ Item {
2626 columnWidth: 150
2727 columnSpacing: 10
2828 rowSpacing: 10
29+ cacheBuffer: Math.max(0, (height + displayMarginEnd + displayMarginBeginning) / 2)
2930
3031 delegate: Rectangle {
3132 property real randomValue: Math.random()