aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-10-27 10:57:55 +0200
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2017-10-27 19:27:47 +0200
commitf25cc3a67f63e70464c5296cb9423442e4f29a22 (patch)
tree4e40d69054ea35b86fc828a74e9ad64a6b118393 /mobile-widgets/qml
parent43a5cb3962e657f6a6dcc7a3abdc6c6ea3e008f9 (diff)
downloadsubsurface-f25cc3a67f63e70464c5296cb9423442e4f29a22.tar.gz
QML UI: repair long trip headers
Trip headers spanning more than one line where broken at incorrect locations in the string. Not exactly sure, but I think this came with the newest Kirigami SHA, and especially the Label change. Carefully reading the code for the trip heading shows a "strange" negative margin. So the margin is on the outside. This margin was used to split the string, allowing for a small invisible part of the string to present as trip header. This is solved by this commit. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 41cffe6ca..d7dc0116a 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -185,7 +185,7 @@ Kirigami.ScrollablePage {
Component {
id: tripHeading
Item {
- width: page.width - Kirigami.Units.gridUnit
+ width: page.width
height: childrenRect.height - Kirigami.Units.smallSpacing
Rectangle {
id: headingBackground
@@ -193,7 +193,6 @@ Kirigami.ScrollablePage {
anchors {
left: parent.left
right: parent.right
- rightMargin: Kirigami.Units.gridUnit * -2
}
color: subsurfaceTheme.lightPrimaryColor
visible: section != ""