From 8c5d4e186c702c1a97006c9bb208810bb7ad67de Mon Sep 17 00:00:00 2001
From: Anatasof Wirapraja <anatasof.wirapraja@gmail.com>
Date: Thu, 22 Aug 2019 17:13:31 +0700
Subject: remove anchorrs, use layout instead

---
 LoginForm.ui.qml | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git a/LoginForm.ui.qml b/LoginForm.ui.qml
index a2dc1d4..bad8934 100644
--- a/LoginForm.ui.qml
+++ b/LoginForm.ui.qml
@@ -11,21 +11,19 @@ Rectangle {
     property alias emailButton: emailButton
 
     RowLayout {
-        anchors.horizontalCenter: parent.horizontalCenter
-        anchors.left: parent.left
         anchors.right: parent.right
-        anchors.leftMargin: 16
         anchors.rightMargin: 16
+        anchors.left: parent.left
+        anchors.leftMargin: 16
         anchors.bottom: disclaimer.top
         anchors.bottomMargin: 16
+        spacing: 16
 
         Button {
             id: emailButton
             text: qsTr("Continue with E-Mail")
             height: 36
-            anchors.left: parent.left
-            anchors.right: parent.right
-            anchors.bottom: parent.bottom
+            Layout.fillWidth: true
 
             contentItem: Text {
                 text: emailButton.text
@@ -48,13 +46,8 @@ Rectangle {
         Button {
             id: googleButton
             text: qsTr("Continue with Google")
-            y: 419
             height: 36
-
-            anchors.right: parent.right
-            anchors.left: parent.left
-            anchors.bottom: emailButton.top
-            anchors.bottomMargin: 16
+            Layout.fillWidth: true
 
             contentItem: Text {
                 text: googleButton.text
-- 
cgit v1.2.3