on xenial help sign in
calling flick() onCompleted to correctly position the view.
d9a8253Michael Zanetti
Launcher/LauncherPanel.qml+9
@@ -117,6 +117,15 @@ Item {
117 property int foldingAreaHeight: itemSize * 0.75
117 property int foldingAreaHeight: itemSize * 0.75
118 property int itemSize: width
118 property int itemSize: width
119
119
120+ Component.onCompleted: {
121+ // This is needed because snapping would partially fold
122+ // the first item on initialisation. This can only be
123+ // overridden by mouse interactions - which is what flick()
124+ // simulates. Setting contentY to 0 would not work because
125+ // of this.
126+ flick(0, units.gu(20))
127+ }
128+
120 delegate: LauncherDelegate {
129 delegate: LauncherDelegate {
121 id: launcherDelegate
130 id: launcherDelegate
122 objectName: "launcherDelegate" + index
131 objectName: "launcherDelegate" + index