From 0aab234217afc93c2e40d462b1707c467e58b010 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sat, 16 Sep 2017 10:29:01 +0200 Subject: Ensure proper anchoring of the EditAccounts view. Still not pretty but ensures the textareas resize as they should --- framework/qml/EditAccount.qml | 28 +++++++++++++++++----------- 1 file 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 { top:subHeadline.bottom left: parent.left right: parent.right + bottom: footer.top topMargin: Kube.Units.largeSpacing * 2 } Loader { id: loader - anchors.fill: parent + anchors { + top: parent.top + left: parent.left + right: parent.right + } + //The initial size is somehow necessary so the loader is properly anchored + height: 10 source: accountFactory.uiPath onLoaded: item.accountId = root.accountId } - } - - Item { - id: spacer - Layout.fillHeight: true - anchors { - top:accountEdit.bottom - left: parent.left - right: parent.right + Item { + id: spacer + anchors { + top: loader.bottom + left: parent.left + right: parent.right + bottom: parent.bottom + } } } @@ -90,12 +96,12 @@ Item { GridLayout { id: footer anchors { - top:spacer.bottom bottom: parent.bottom left: parent.left right: parent.right topMargin: Kube.Units.largeSpacing * 2 } + height: childrenRect.height columns: 2 columnSpacing: Kube.Units.largeSpacing -- cgit v1.2.3