From ea218b9d248576ab4d8e0640bb596b46cbb2247a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 22 Jun 2017 03:11:51 -0700 Subject: QML UI: DiveList: allow trip header to wrap Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveList.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index a62b298de..3992ce2b3 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -185,7 +185,7 @@ Kirigami.ScrollablePage { height: childrenRect.height - Kirigami.Units.smallSpacing Rectangle { id: headingBackground - height: section == "" ? 0 : Kirigami.Units.gridUnit * 2.5 + height: section == "" ? 0 : sectionText.height + Kirigami.Units.gridUnit anchors { left: parent.left right: parent.right @@ -208,6 +208,7 @@ Kirigami.ScrollablePage { } shownText } + wrapMode: Text.WrapAtWordBoundaryOrAnywhere visible: text !== "" font.weight: Font.Bold anchors { -- cgit v1.2.3-70-g09d2