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>
This commit is contained in:
Dirk Hohndel 2018-06-27 16:27:59 -07:00
parent ef17c78e23
commit 478b5de9e7

View file

@ -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