on xenial help sign in
Reset VerticalJournal until the cardTool settles

Fixes: 1381255 Approved by: Michał Sawicz

commit79e2fa8f24328e2ae1b6ba51f016e8892f9b507a authorAlbert Astals <albert.astals@canonical.com> dateThu 30 Oct 2014, 10:50 (12 years ago) parent65bdb6d955bba8
1 file changed+17
qml/Dash/CardVerticalJournal.qml+17
qml/Dash/CardVerticalJournal.qml+17
@@ -33,6 +33,23 @@ DashRenderer {
3333 // in case the model is non empty
3434 readonly property double minHeight: root.model.count >= 1 ? cardVerticalJournal.rowSpacing + 1 : 0
3535
36+ function clearView() {
37+ cardVerticalJournal.model = null;
38+ cardVerticalJournal.model = root.model;
39+ }
40+
41+ // Clear the view if the cardTool changes its sizes
42+ // means it is still settling. This is
43+ // necessary because the VerticalJournal does
44+ // not support its elements changing height so
45+ // we need to construct all the items with the settled
46+ // size of the cardTool
47+ Connections {
48+ target: cardTool
49+ onArtShapeSizeChanged: root.clearView();
50+ onHeaderHeightChanged: root.clearView();
51+ }
52+
3653 ResponsiveVerticalJournal {
3754 id: cardVerticalJournal
3855