@@ -33,15 +33,18 @@ LocalComponents.Page {
33 readonly property alias password: passwordField.text
33 readonly property alias password: passwordField.text
34 readonly property alias password2: password2Field.text
34 readonly property alias password2: password2Field.text
36− GridLayout {
36+ Flickable {
37 id: column
37 id: column
38− columns: 1
38+ clip: true
39− rows: 3
39+ flickableDirection: Flickable.VerticalFlick
40 anchors.fill: content
40 anchors.fill: content
41− anchors.leftMargin: leftMargin
41+ anchors.leftMargin: parent.leftMargin
42− anchors.rightMargin: rightMargin
42+ anchors.rightMargin: parent.rightMargin
43 anchors.topMargin: customMargin
43 anchors.topMargin: customMargin
44− rowSpacing: units.gu(3)
44+
45+ bottomMargin: Qt.inputMethod.keyboardRectangle.height - height - customMargin
47+ Behavior on contentY { UbuntuNumberAnimation {} }
47 id: infoLabel
50 id: infoLabel
@@ -49,6 +52,7 @@ LocalComponents.Page {
50 left: parent.left
53 left: parent.left
51 right: parent.right
54 right: parent.right
53 wrapMode: Text.Wrap
57 wrapMode: Text.Wrap
54 font.weight: Font.Light
58 font.weight: Font.Light
@@ -57,6 +61,13 @@ LocalComponents.Page {
59 GridLayout {
63 GridLayout {
67+ top: infoLabel.bottom
68+ topMargin: units.gu(3)
60 columns: 2
71 columns: 2
61 columnSpacing: units.gu(2)
72 columnSpacing: units.gu(2)
62 rowSpacing: units.gu(2)
73 rowSpacing: units.gu(2)
@@ -74,6 +85,11 @@ LocalComponents.Page {
74 validator: RegExpValidator { regExp: /^\d{4}$/ }
85 validator: RegExpValidator { regExp: /^\d{4}$/ }
75 maximumLength: 4
86 maximumLength: 4
76 onAccepted: password2Field.forceActiveFocus()
87 onAccepted: password2Field.forceActiveFocus()
88+ onActiveFocusChanged: {
@@ -88,6 +104,11 @@ LocalComponents.Page {
88 inputMethodHints: Qt.ImhDigitsOnly
104 inputMethodHints: Qt.ImhDigitsOnly
89 validator: RegExpValidator { regExp: /^\d{4}$/ }
105 validator: RegExpValidator { regExp: /^\d{4}$/ }
90 maximumLength: 4
106 maximumLength: 4
107+ onActiveFocusChanged: {
@@ -112,10 +133,6 @@ LocalComponents.Page {
117− Layout.fillHeight: true
121 Component {
138 Component {