aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2020-05-11 00:42:45 +0200
committerGitHub <noreply@github.com>2020-05-11 00:42:45 +0200
commitd662e46146bf62135688dcd4afc594a1caf8ce9d (patch)
tree7698d852f231a7b39acf4e1786ed8cef4171e2c8
parentafe1ae9b9c4c2d9e9628f4fecfea3038725d95df (diff)
downloadmonzero-gui-d662e46146bf62135688dcd4afc594a1caf8ce9d.tar.gz
monzero-gui-d662e46146bf62135688dcd4afc594a1caf8ce9d.tar.xz
monzero-gui-d662e46146bf62135688dcd4afc594a1caf8ce9d.zip
Merchant: display size warning when height < minHeight
-rw-r--r--pages/merchant/Merchant.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/pages/merchant/Merchant.qml b/pages/merchant/Merchant.qml
index 8602945a..7ed4cdc3 100644
--- a/pages/merchant/Merchant.qml
+++ b/pages/merchant/Merchant.qml
@@ -25,6 +25,7 @@ Item {
anchors.margins: 0
property int minWidth: 900
+ property int minHeight: 600
property int qrCodeSize: 220
property bool enableTracking: false
property string trackingError: "" // setting this will show a message @ tracking table
@@ -70,7 +71,7 @@ Item {
ColumnLayout {
id: mainLayout
- visible: parent.width >= root.minWidth
+ visible: parent.width >= root.minWidth && appWindow.height >= root.minHeight
spacing: 0
// emulates max-width + center for container
@@ -556,7 +557,7 @@ Item {
Rectangle {
// Shows when the window is too small
- visible: parent.width < root.minWidth
+ visible: parent.width < root.minWidth || appWindow.height < root.minHeight
anchors.top: parent.top
anchors.topMargin: 100;
anchors.horizontalCenter: parent.horizontalCenter