fix(wallet) SendModal layout

StatusScrollView was missing a height hint so even that it was expanding
the parent layout didn't know how much to allow it.
This commit is contained in:
Stefan 2023-02-09 16:50:30 +02:00 committed by Anthony Laibe
parent 3a08ebec4e
commit 505f6d59bf
4 changed files with 9 additions and 4 deletions

View File

@ -57,7 +57,7 @@ proc adaptNodeSettingsForTheAppNeed(self: Service) =
self.configuration.LogFile = "./geth.log"
self.configuration.ShhextConfig.BackupDisabledDataDir = "./"
if (not self.isCommunityHistoryArchiveSupportEnabled):
if (not self.isCommunityHistoryArchiveSupportEnabled()):
# Force community archive support true on Desktop
# TODO those lines can be removed in the future once we are sure no one has used a legacy client where it is off
if (self.enableCommunityHistoryArchiveSupport()):

View File

@ -68,7 +68,6 @@ Item {
StatusComboBox {
id: comboBox
objectName: "assetSelectorButton"
width: d.isTokenSelected ? rowLayout.implicitWidth : 116
height: 34
control.padding: 4
@ -132,7 +131,6 @@ Item {
visible: d.isTokenSelected
}
StatusBaseText {
Layout.maximumWidth: comboBox.width - Style.current.padding
Layout.alignment: Qt.AlignCenter
visible: !d.isTokenSelected
font.pixelSize: 15

View File

@ -334,8 +334,12 @@ StatusDialog {
StatusScrollView {
id: scrollView
topPadding: 12
implicitWidth: contentWidth + leftPadding + rightPadding
implicitHeight: contentHeight + topPadding + bottomPadding
Layout.fillWidth: true
Layout.fillHeight: true
Layout.preferredWidth: parent.width
contentHeight: layout.height + Style.current.padding
contentWidth: parent.width
z: 0

View File

@ -969,6 +969,9 @@ QtObject {
}
function getCurrencyAmount(amount, symbol) {
if (isNaN(amount)) {
amount = 0
}
let obj = JSON.parse((walletSection.getCurrencyAmountAsJson(amount, symbol)))
if (obj.error) {
console.error("Error parsing currency amount json object, amount: ", amount, ", symbol ", symbol, " error: ", obj.error)