aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-22 03:11:51 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-22 04:19:23 -0700
commitea218b9d248576ab4d8e0640bb596b46cbb2247a (patch)
tree44d2a988bf9bfb04c6ac33a36281104b7b060a51
parentd9cb65cbed88e8ad252d337b338f566c2aab1bc2 (diff)
downloadsubsurface-ea218b9d248576ab4d8e0640bb596b46cbb2247a.tar.gz
QML UI: DiveList: allow trip header to wrap
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qml/DiveList.qml3
1 files changed, 2 insertions, 1 deletions
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 {