Browse Source

qml: let Pin dialog decide its own height

master
Sander van Grieken 3 years ago
parent
commit
3fbc82dc95
  1. 4
      electrum/gui/qml/components/Pin.qml

4
electrum/gui/qml/components/Pin.qml

@ -14,7 +14,6 @@ ElDialog {
iconSource: '../../../icons/lock.png' iconSource: '../../../icons/lock.png'
width: parent.width * 2/3 width: parent.width * 2/3
height: parent.height * 1/3
anchors.centerIn: parent anchors.centerIn: parent
@ -78,7 +77,6 @@ ElDialog {
ColumnLayout { ColumnLayout {
width: parent.width width: parent.width
height: parent.height
Label { Label {
text: [qsTr('Enter PIN'), qsTr('Enter New PIN'), qsTr('Re-enter New PIN')][_phase] text: [qsTr('Enter PIN'), qsTr('Enter New PIN'), qsTr('Re-enter New PIN')][_phase]
@ -109,8 +107,6 @@ ElDialog {
color: constants.colorError color: constants.colorError
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
} }
Item { Layout.fillHeight: true; Layout.preferredWidth: 1 }
} }
FontMetrics { FontMetrics {

Loading…
Cancel
Save