From 39564b2f7f44782eb5a0f2bebcff8860dc77706c Mon Sep 17 00:00:00 2001
From: Anatasof Wirapraja <anatasof.wirapraja@gmail.com>
Date: Thu, 3 Oct 2019 11:25:43 +0700
Subject: load `TaskHistoryForm` below anchor

---
 features/TaskDetailForm.ui.qml | 75 +++++++++++++++++++++++-------------------
 1 file changed, 41 insertions(+), 34 deletions(-)

(limited to 'features')

diff --git a/features/TaskDetailForm.ui.qml b/features/TaskDetailForm.ui.qml
index 53fc6ed..ec6c4d1 100644
--- a/features/TaskDetailForm.ui.qml
+++ b/features/TaskDetailForm.ui.qml
@@ -40,41 +40,48 @@ Page {
         background: Rectangle {
             color: "#FFFFFF"
         }
-
+        TaskBriefForm {
+            id: ticketBriefForm
+            anchors.top: parent.top
+            anchors.topMargin: 0
+            anchors.right: parent.right
+            anchors.rightMargin: 0
+            anchors.left: parent.left
+            anchors.leftMargin: 0
+        }
+        RowLayout {
+            id: separator
+            height: separatorLabel.height + 32
+            anchors.top: ticketBriefForm.bottom
+            anchors.topMargin: 0
+            anchors.right: parent.right
+            anchors.rightMargin: 0
+            anchors.left: parent.left
+            anchors.leftMargin: 0
+            Label {
+                id: separatorLabel
+                height: 20
+                color: "#000000"
+                text: qsTr("Activities")
+                Layout.leftMargin: 16
+                verticalAlignment: Text.AlignVCenter
+                font.weight: Font.Medium
+                font.pixelSize: 16
+                font.family: "Work Sans"
+            }
+        }
         ListView {
             id: listView
-            anchors.fill: parent
-            spacing: 8
-            TaskBriefForm {
-                id: ticketBriefForm
-                anchors.top: parent.top
-                anchors.topMargin: 0
-                anchors.right: parent.right
-                anchors.rightMargin: 0
-                anchors.left: parent.left
-                anchors.leftMargin: 0
-            }
-            RowLayout {
-                id: separator
-                height: separatorLabel.height + 32
-                anchors.top: ticketBriefForm.bottom
-                anchors.topMargin: 0
-                anchors.right: parent.right
-                anchors.rightMargin: 0
-                anchors.left: parent.left
-                anchors.leftMargin: 0
-                Label {
-                    id: separatorLabel
-                    height: 20
-                    color: "#000000"
-                    text: qsTr("Activities")
-                    Layout.leftMargin: 16
-                    verticalAlignment: Text.AlignVCenter
-                    font.weight: Font.Medium
-                    font.pixelSize: 16
-                    font.family: "Work Sans"
-                }
-            }
+            anchors.bottom: parent.bottom
+            anchors.bottomMargin: 0
+            anchors.top: separator.bottom
+            anchors.topMargin: 0
+            anchors.right: parent.right
+            anchors.rightMargin: 0
+            anchors.left: parent.left
+            anchors.leftMargin: 0
+            spacing: 0
+
             ScrollBar.vertical: ScrollBar {}
         }
     }
@@ -82,7 +89,7 @@ Page {
 
 /*##^##
 Designer {
-    D{i:0;autoSize:true;height:480;width:640}D{i:8;anchors_height:432;anchors_width:640}
+    D{i:0;autoSize:true;height:480;width:640}
 }
 ##^##*/
 
-- 
cgit v1.2.3