From 478b5de9e706e2c74fc322c29c1c3861d637f408 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 27 Jun 2018 16:27:59 -0700 Subject: QML UI: fix layout of Download page The info text from the download process wasn't rendered correctly. maximumWidth ended being a recursive reference and as a result the text would render as very narrow and super-tall field. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DownloadFromDiveComputer.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index 1182a9d37..5cd407d95 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -209,7 +209,7 @@ Kirigami.Page { } Controls.Label { - Layout.maximumWidth: parent.width - download.width - quitbutton.width - rescanbutton.width + Layout.fillWidth: true text: divesDownloaded ? qsTr(" Downloaded dives") : (manager.progressMessage != "" ? qsTr("Info:") + " " + manager.progressMessage : btMessage) wrapMode: Text.WrapAtWordBoundaryOrAnywhere -- cgit v1.2.3-70-g09d2