Browse Source

qml: fix flickable margins TxDetails and WalletDetails

master
Sander van Grieken 3 years ago
parent
commit
3cb9ded1ca
  1. 13
      electrum/gui/qml/components/TxDetails.qml
  2. 13
      electrum/gui/qml/components/WalletDetails.qml

13
electrum/gui/qml/components/TxDetails.qml

@ -36,16 +36,17 @@ Pane {
Flickable { Flickable {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
Layout.topMargin: constants.paddingLarge
Layout.leftMargin: constants.paddingLarge
Layout.rightMargin: constants.paddingLarge
contentHeight: contentLayout.height contentHeight: flickableRoot.height
clip: true clip: true
interactive: height < contentHeight interactive: height < contentHeight
Pane {
id: flickableRoot
width: parent.width
padding: constants.paddingLarge
GridLayout { GridLayout {
id: contentLayout
width: parent.width width: parent.width
columns: 2 columns: 2
@ -311,7 +312,7 @@ Pane {
} }
} }
} }
}
} }
ButtonContainer { ButtonContainer {

13
electrum/gui/qml/components/WalletDetails.qml

@ -45,21 +45,23 @@ Pane {
ColumnLayout { ColumnLayout {
id: rootLayout id: rootLayout
width: parent.width anchors.fill: parent
height: parent.height
spacing: 0 spacing: 0
Flickable { Flickable {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
Layout.margins: constants.paddingLarge
contentHeight: flickableLayout.height contentHeight: flickableRoot.height
clip:true clip:true
interactive: height < contentHeight interactive: height < contentHeight
Pane {
id: flickableRoot
width: parent.width
padding: constants.paddingLarge
ColumnLayout { ColumnLayout {
id: flickableLayout
width: parent.width width: parent.width
spacing: constants.paddingLarge spacing: constants.paddingLarge
@ -459,6 +461,7 @@ Pane {
} }
} }
} }
}
ButtonContainer { ButtonContainer {
Layout.fillWidth: true Layout.fillWidth: true

Loading…
Cancel
Save