diff --git a/electrum/gui/qml/components/LoadingWalletDialog.qml b/electrum/gui/qml/components/LoadingWalletDialog.qml index b7c4ed5a1..cbe8408bb 100644 --- a/electrum/gui/qml/components/LoadingWalletDialog.qml +++ b/electrum/gui/qml/components/LoadingWalletDialog.qml @@ -13,7 +13,7 @@ ElDialog { title: qsTr('Loading Wallet') iconSource: Qt.resolvedUrl('../../icons/wallet.png') - parent: Overlay.overlay + resizeWithKeyboard: false x: Math.floor((parent.width - implicitWidth) / 2) y: Math.floor((parent.height - implicitHeight) / 2) diff --git a/electrum/gui/qml/components/controls/ElDialog.qml b/electrum/gui/qml/components/controls/ElDialog.qml index 0bcce3bdb..82bafd16f 100644 --- a/electrum/gui/qml/components/controls/ElDialog.qml +++ b/electrum/gui/qml/components/controls/ElDialog.qml @@ -7,12 +7,13 @@ Dialog { property bool allowClose: true property string iconSource + property bool resizeWithKeyboard: true function doClose() { close() } - parent: Overlay.overlay.children[0] + parent: resizeWithKeyboard ? Overlay.overlay.children[0] : Overlay.overlay modal: true Overlay.modal: Rectangle { color: "#aa000000" diff --git a/electrum/gui/qml/components/main.qml b/electrum/gui/qml/components/main.qml index 1f9b49615..461491b35 100644 --- a/electrum/gui/qml/components/main.qml +++ b/electrum/gui/qml/components/main.qml @@ -264,6 +264,7 @@ ApplicationWindow Item { // Item as first child in Overlay that adjusts its size to the available // screen space minus the virtual keyboard (e.g. to center dialogs in) + // see ElDialog.resizeWithKeyboard property parent: Overlay.overlay width: parent.width height: inputPanel.y