aboutsummaryrefslogtreecommitdiff
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
parentb757cc28b8055c7811769c80fcbda569a66750d7 (diff)
downloadmonzero-gui-1918c5e24a3c61260c5d16cd67921207bf984db2.tar.gz
monzero-gui-1918c5e24a3c61260c5d16cd67921207bf984db2.tar.xz
monzero-gui-1918c5e24a3c61260c5d16cd67921207bf984db2.zip
fix dynamic button width
-rw-r--r--components/StandardButton.qml4
-rw-r--r--pages/Settings.qml2
2 files changed, 2 insertions, 4 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 {
diff --git a/pages/Settings.qml b/pages/Settings.qml
index 10ccb64a..1d6a4ca8 100644
--- a/pages/Settings.qml
+++ b/pages/Settings.qml
@@ -84,7 +84,6 @@ Rectangle {
RowLayout {
StandardButton {
id: closeWalletButton
- width: 100
text: qsTr("Close wallet") + translationManager.emptyString
shadowReleasedColor: "#FF4304"
shadowPressedColor: "#B32D00"
@@ -118,7 +117,6 @@ Rectangle {
releasedColor: "#FF6C3C"
pressedColor: "#FF4304"
text: qsTr("Show seed") + translationManager.emptyString
- Layout.alignment: Qt.AlignRight
onClicked: {
settingsPasswordDialog.open();
}