@@ -34,14 +34,18 @@ LocalComponents.Page {
34 readonly property alias password2: password2Field.text
34 readonly property alias password2: password2Field.text
35 readonly property bool passwordsMatching: password == password2 && password.trim().length > 7
35 readonly property bool passwordsMatching: password == password2 && password.trim().length > 7
37− ColumnLayout {
37+ Flickable {
38 id: column
38 id: column
40+ flickableDirection: Flickable.VerticalFlick
39 anchors.fill: content
41 anchors.fill: content
40− anchors.leftMargin: leftMargin
42+ anchors.leftMargin: parent.leftMargin
41− anchors.rightMargin: rightMargin
43+ anchors.rightMargin: parent.rightMargin
42 anchors.topMargin: customMargin
44 anchors.topMargin: customMargin
46+ bottomMargin: Qt.inputMethod.keyboardRectangle.height
46 id: infoLabel
50 id: infoLabel
47 objectName: "infoLabel"
51 objectName: "infoLabel"
@@ -55,31 +59,53 @@ LocalComponents.Page {
55 text: i18n.tr("Enter at least 8 characters")
59 text: i18n.tr("Enter at least 8 characters")
58− ColumnLayout {
62+ // password
59− id: innerLayout
63+ Label {
60− Label {
64+ id: pass1Label
61− text: i18n.tr("Choose password")
65+ anchors {
62− color: textColor
66+ left: parent.left
68+ top: infoLabel.bottom
69+ topMargin: units.gu(3)
71+ text: i18n.tr("Choose password")
64− LocalComponents.WizardTextField {
74+ LocalComponents.WizardTextField {
65− Layout.fillWidth: true
66− id: passwordField
75+ id: passwordField
67− objectName: "passwordField"
76+ anchors {
68− echoMode: TextInput.Password
77+ left: parent.left
69− onAccepted: password2Field.forceActiveFocus()
78+ right: parent.right
79+ top: pass1Label.bottom
80+ topMargin: units.gu(1)
82+ objectName: "passwordField"
83+ echoMode: TextInput.Password
84+ onAccepted: password2Field.forceActiveFocus()
73− text: i18n.tr("Confirm password")
87+ // password 2
74− color: textColor
88+ Label {
93+ top: passwordField.bottom
75− anchors.topMargin: units.gu(1)
94+ topMargin: units.gu(3)
96+ text: i18n.tr("Confirm password")
77− LocalComponents.WizardTextField {
99+ LocalComponents.WizardTextField {
78− Layout.fillWidth: true
100+ anchors {
79− id: password2Field
101+ left: parent.left
80− objectName: "password2Field"
102+ right: parent.right
81− echoMode: TextInput.Password
103+ top: pass2Label.bottom
104+ topMargin: units.gu(1)
107+ objectName: "password2Field"
108+ echoMode: TextInput.Password
85 // password meter
111 // password meter
@@ -88,17 +114,13 @@ LocalComponents.Page {
88 anchors {
114 anchors {
89 left: parent.left
115 left: parent.left
90 right: parent.right
116 right: parent.right
91− top: innerLayout.bottom
117+ top: password2Field.bottom
92 topMargin: units.gu(1)
118 topMargin: units.gu(1)
95 password: passwordField.text
121 password: passwordField.text
96 matching: passwordsMatching
122 matching: passwordsMatching
100− Layout.fillHeight: true
104 Component {
126 Component {