aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DownloadFromDiveComputer.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-27 16:27:59 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-27 16:28:01 -0700
commit478b5de9e706e2c74fc322c29c1c3861d637f408 (patch)
treec623b43d4e37bff8c5a871d8f3fe5ec4d0916efb /mobile-widgets/qml/DownloadFromDiveComputer.qml
parentef17c78e2387ac0e26a3334ecc287f16e82ab06e (diff)
downloadsubsurface-478b5de9e706e2c74fc322c29c1c3861d637f408.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml2
1 files changed, 1 insertions, 1 deletions
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