aboutsummaryrefslogtreecommitdiff
path: root/components/StandardButton.qml
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-03-08 20:37:58 +0100
committerJaquee <jaquee.monero@gmail.com>2017-03-11 15:36:25 +0100
commit1918c5e24a3c61260c5d16cd67921207bf984db2 (patch)
tree13d7b2bffd48a497ebf5f4f82fcc91d80cf858d5 /components/StandardButton.qml
parentb757cc28b8055c7811769c80fcbda569a66750d7 (diff)
downloadmonzero-gui-1918c5e24a3c61260c5d16cd67921207bf984db2.tar.gz
monzero-gui-1918c5e24a3c61260c5d16cd67921207bf984db2.tar.xz
monzero-gui-1918c5e24a3c61260c5d16cd67921207bf984db2.zip
fix dynamic button width
Diffstat (limited to 'components/StandardButton.qml')
-rw-r--r--components/StandardButton.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/StandardButton.qml b/components/StandardButton.qml
index f1253cd9..bb2f4d94 100644
--- a/components/StandardButton.qml
+++ b/components/StandardButton.qml
@@ -43,8 +43,8 @@ Item {
signal clicked()
// Dynamic label width
- width: label.contentWidth + 20
- Layout.minimumWidth: 100
+ Layout.minimumWidth: (label.contentWidth > 100)? label.contentWidth + 20 : 100
+
Rectangle {