summaryrefslogtreecommitdiffstats
path: root/framework/qml/EditAccount.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-16 10:29:01 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-16 10:29:58 +0200
commit0aab234217afc93c2e40d462b1707c467e58b010 (patch)
tree385636843abd720700b015d26fb0f5f42f449872 /framework/qml/EditAccount.qml
parent05eb688e31accbc1a40677145ad2cada24e798c7 (diff)
downloadkube-0aab234217afc93c2e40d462b1707c467e58b010.tar.gz
kube-0aab234217afc93c2e40d462b1707c467e58b010.zip
Ensure proper anchoring of the EditAccounts view.
Still not pretty but ensures the textareas resize as they should
Diffstat (limited to 'framework/qml/EditAccount.qml')
-rw-r--r--framework/qml/EditAccount.qml28
1 files changed, 17 insertions, 11 deletions
diff --git a/framework/qml/EditAccount.qml b/framework/qml/EditAccount.qml
index 25d3dba0..85df955b 100644
--- a/framework/qml/EditAccount.qml
+++ b/framework/qml/EditAccount.qml
@@ -65,24 +65,30 @@ Item {
65 top:subHeadline.bottom 65 top:subHeadline.bottom
66 left: parent.left 66 left: parent.left
67 right: parent.right 67 right: parent.right
68 bottom: footer.top
68 topMargin: Kube.Units.largeSpacing * 2 69 topMargin: Kube.Units.largeSpacing * 2
69 } 70 }
70 71
71 Loader { 72 Loader {
72 id: loader 73 id: loader
73 anchors.fill: parent 74 anchors {
75 top: parent.top
76 left: parent.left
77 right: parent.right
78 }
79 //The initial size is somehow necessary so the loader is properly anchored
80 height: 10
74 source: accountFactory.uiPath 81 source: accountFactory.uiPath
75 onLoaded: item.accountId = root.accountId 82 onLoaded: item.accountId = root.accountId
76 } 83 }
77 } 84 Item {
78 85 id: spacer
79 Item { 86 anchors {
80 id: spacer 87 top: loader.bottom
81 Layout.fillHeight: true 88 left: parent.left
82 anchors { 89 right: parent.right
83 top:accountEdit.bottom 90 bottom: parent.bottom
84 left: parent.left 91 }
85 right: parent.right
86 } 92 }
87 } 93 }
88 94
@@ -90,12 +96,12 @@ Item {
90 GridLayout { 96 GridLayout {
91 id: footer 97 id: footer
92 anchors { 98 anchors {
93 top:spacer.bottom
94 bottom: parent.bottom 99 bottom: parent.bottom
95 left: parent.left 100 left: parent.left
96 right: parent.right 101 right: parent.right
97 topMargin: Kube.Units.largeSpacing * 2 102 topMargin: Kube.Units.largeSpacing * 2
98 } 103 }
104 height: childrenRect.height
99 105
100 columns: 2 106 columns: 2
101 columnSpacing: Kube.Units.largeSpacing 107 columnSpacing: Kube.Units.largeSpacing