on xenial help sign in
review fixes
commitae1f4f578f77a8275abb3c565f4709f5c2a16775 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 24 Feb 2016, 03:38 (11 years ago) parent2b57762
2 files changed+17−11
qml/Wizard/Pages/30-wifi.qml+4−6 qml/Wizard/Pages/60-account.qml+13−5
qml/Wizard/Pages/30-wifi.qml+4−6
@@ -133,7 +133,10 @@ LocalComponents.Page {
133133 }
134134 }
135135
136− onClicked: unityMenuModel.activate(menuIndex);
136+ onClicked: {
137+ unityMenuModel.activate(menuIndex);
138+ listview.positionViewAtBeginning();
139+ }
137140
138141 Component.onCompleted: {
139142 loadAttributes();
@@ -144,11 +147,6 @@ LocalComponents.Page {
144147 onMenuIndexChanged: {
145148 loadAttributes();
146149 }
147− onIsConnectedChanged: {
148− if (isConnected) {
149− listview.positionViewAtIndex(0, ListView.Beginning);
150− }
151− }
152150 }
153151 }
154152
qml/Wizard/Pages/60-account.qml+13−5
@@ -46,12 +46,13 @@ LocalComponents.Page {
4646 id: column
4747 clip: true
4848 flickableDirection: Flickable.VerticalFlick
49− anchors.fill: content
50− anchors.leftMargin: parent.leftMargin
51− anchors.rightMargin: parent.rightMargin
52− anchors.topMargin: customMargin
49+ anchors {
50+ fill: content
51+ leftMargin: parent.leftMargin
52+ rightMargin: parent.rightMargin
53+ topMargin: customMargin
54+ }
5355
54− height: contentHeight - buttonBarHeight - Qt.inputMethod.keyboardRectangle.height - titleRectHeight
5556 contentHeight: contentItem.childrenRect.height
5657
5758 Behavior on contentY { UbuntuNumberAnimation{} }
@@ -111,6 +112,13 @@ LocalComponents.Page {
111112 }
112113 }
113114
115+ Binding {
116+ target: surnameInput
117+ property: "anchors.bottomMargin"
118+ value: Qt.inputMethod.keyboardRectangle.height
119+ when: Qt.inputMethod.visible && !Qt.inputMethod.animating
120+ }
121+
114122 Component {
115123 id: forwardButton
116124 LocalComponents.StackButton {