on xenial help sign in
hide items when they're not needed
commit4872f9a47a6ea6caae66e9935409c3ffe973dd7c authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 3 Jun 2015, 15:20 (11 years ago) parent9a97fdc
2 files changed+2
qml/Stages/DesktopStage.qml+1 qml/Stages/SpreadMaths.qml+1
qml/Stages/DesktopStage.qml+1
@@ -185,6 +185,7 @@ Rectangle {
185185 itemScale: spreadMaths.scale
186186 itemScaleOriginY: decoratedWindow.height / 2;
187187 z: index
188+ visible: spreadMaths.itemVisible
188189 }
189190 PropertyChanges {
190191 target: decoratedWindow
qml/Stages/SpreadMaths.qml+1
@@ -122,6 +122,7 @@ Item {
122122 linearAnimation(1, 1.5, 1, 0, rightFoldingAreaProgress)
123123 : 1
124124
125+ readonly property bool itemVisible: itemIndex == totalItems - 1 ? true : leftFoldingAreaProgress < 5 && rightFoldingAreaProgress < 5
125126
126127 // Helpers
127128 function linearAnimation(startProgress, endProgress, startValue, endValue, progress) {