diff options
author | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2019-09-26 14:32:40 +0700 |
---|---|---|
committer | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2019-09-26 14:32:40 +0700 |
commit | c09d129ea53dfc267a808dd15667453eb9177e57 (patch) | |
tree | 4b32782807fbd28ea469a3f7f85d04c1ee59ebd4 /features/TaskDetailForm.ui.qml | |
parent | af814b7312868cbfb54ebc994a7996c81d0f9670 (diff) |
`taskTitleLayout` and `taskDescriptionLayout` height fluidly resizes based on the content height
Diffstat (limited to 'features/TaskDetailForm.ui.qml')
-rw-r--r-- | features/TaskDetailForm.ui.qml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/features/TaskDetailForm.ui.qml b/features/TaskDetailForm.ui.qml index 3125bef..d231f5a 100644 --- a/features/TaskDetailForm.ui.qml +++ b/features/TaskDetailForm.ui.qml @@ -40,7 +40,7 @@ Page { RowLayout { id: taskTitleLayout - height: 56 + height: taskTitle.height + 16 + 5 anchors.top: parent.top anchors.topMargin: 0 anchors.right: parent.right @@ -55,17 +55,22 @@ Page { Layout.leftMargin: 66 Layout.fillWidth: true placeholderText: qsTr("Enter task title") + font.pixelSize: 16 + font.family: "Google Sans" + wrapMode: Text.WrapAtWordBoundaryOrAnywhere } } RowLayout { id: taskDescriptionLayout width: parent.width - height: 56 + height: taskDescription.height + 16 + 5 anchors.horizontalCenter: parent.horizontalCenter anchors.top: taskTitleLayout.bottom anchors.topMargin: 24 Image { id: descriptionIcon + Layout.topMargin: 22 + Layout.alignment: Qt.AlignLeft | Qt.AlignTop sourceSize.height: 24 sourceSize.width: 24 Layout.leftMargin: 12 @@ -82,6 +87,7 @@ Page { Layout.leftMargin: 24 Layout.fillWidth: true placeholderText: qsTr("Enter task description") + wrapMode: Text.WrapAtWordBoundaryOrAnywhere } } RowLayout { |