From f25cc3a67f63e70464c5296cb9423442e4f29a22 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Fri, 27 Oct 2017 10:57:55 +0200 Subject: 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 --- mobile-widgets/qml/DiveList.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mobile-widgets') 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 != "" -- cgit v1.2.3-70-g09d2