diff --git a/ui/app/AppLayouts/Wallet/AssetsTab.qml b/ui/app/AppLayouts/Wallet/AssetsTab.qml index fa1e694301..b118f70c0e 100644 --- a/ui/app/AppLayouts/Wallet/AssetsTab.qml +++ b/ui/app/AppLayouts/Wallet/AssetsTab.qml @@ -1,4 +1,6 @@ import QtQuick 2.13 +import QtQuick.Layouts 1.3 +import QtQuick.Controls 2.14 import "../../../imports" import "../../../shared" @@ -48,7 +50,7 @@ Item { } StyledText { id: assetValue - text: value.toUpperCase() + text: value.toUpperCase() + " " + symbol anchors.right: parent.right anchors.rightMargin: 0 font.pixelSize: 15 @@ -79,13 +81,22 @@ Item { } } - ListView { - id: assetListView - spacing: Style.current.halfPadding + ScrollView { anchors.fill: parent -// model: exampleModel - model: walletModel.assets - delegate: assetViewDelegate + Layout.fillWidth: true + Layout.fillHeight: true + ScrollBar.horizontal.policy: ScrollBar.AlwaysOff + ScrollBar.vertical.policy: assetListView.contentHeight > assetListView.height ? ScrollBar.AlwaysOn : ScrollBar.AlwaysOff + + ListView { + id: assetListView + spacing: Style.current.padding * 2 + anchors.fill: parent + // model: exampleModel + model: walletModel.assets + delegate: assetViewDelegate + boundsBehavior: Flickable.StopAtBounds + } } } /*##^## diff --git a/ui/app/AppLayouts/Wallet/HistoryTab.qml b/ui/app/AppLayouts/Wallet/HistoryTab.qml index ff90a5b495..93295208e2 100644 --- a/ui/app/AppLayouts/Wallet/HistoryTab.qml +++ b/ui/app/AppLayouts/Wallet/HistoryTab.qml @@ -224,6 +224,7 @@ Item { height: parent.height - extraButtons.height width: parent.width clip: true + boundsBehavior: Flickable.StopAtBounds model: walletModel.transactions delegate: transactionListItemCmp ScrollBar.vertical: ScrollBar { diff --git a/ui/app/AppLayouts/Wallet/LeftTab.qml b/ui/app/AppLayouts/Wallet/LeftTab.qml index 9edd58f8b0..03585f2252 100644 --- a/ui/app/AppLayouts/Wallet/LeftTab.qml +++ b/ui/app/AppLayouts/Wallet/LeftTab.qml @@ -152,44 +152,53 @@ Item { } } - ListView { - id: listView + ScrollView { anchors.bottom: parent.bottom anchors.top: walletValueTextContainer.bottom anchors.topMargin: Style.current.padding - spacing: 5 anchors.right: parent.right anchors.left: parent.left + Layout.fillWidth: true + Layout.fillHeight: true + ScrollBar.horizontal.policy: ScrollBar.AlwaysOff + ScrollBar.vertical.policy: listView.contentHeight > listView.height ? ScrollBar.AlwaysOn : ScrollBar.AlwaysOff - delegate: walletDelegate + ListView { + id: listView - ListModel { - id: exampleWalletModel - ListElement { - name: "Status account" - address: "0xcfc9f08bbcbcb80760e8cb9a3c1232d19662fc6f" - balance: "12.00 USD" - iconColor: "#7CDA00" + spacing: 5 + anchors.fill: parent + boundsBehavior: Flickable.StopAtBounds + + delegate: walletDelegate + + ListModel { + id: exampleWalletModel + ListElement { + name: "Status account" + address: "0xcfc9f08bbcbcb80760e8cb9a3c1232d19662fc6f" + balance: "12.00 USD" + iconColor: "#7CDA00" + } + + ListElement { + name: "Test account 1" + address: "0x2Ef1...E0Ba" + balance: "12.00 USD" + iconColor: "#FA6565" + } + ListElement { + name: "Status account" + address: "0x2Ef1...E0Ba" + balance: "12.00 USD" + iconColor: "#7CDA00" + } } - ListElement { - name: "Test account 1" - address: "0x2Ef1...E0Ba" - balance: "12.00 USD" - iconColor: "#FA6565" - } - ListElement { - name: "Status account" - address: "0x2Ef1...E0Ba" - balance: "12.00 USD" - iconColor: "#7CDA00" - } + model: walletModel.accounts + // model: exampleWalletModel } - - model: walletModel.accounts - // model: exampleWalletModel } - } /*##^## diff --git a/ui/app/AppLayouts/Wallet/components/SetCurrencyModalContent.qml b/ui/app/AppLayouts/Wallet/components/SetCurrencyModalContent.qml index f4c2ef547a..3555c1a7db 100644 --- a/ui/app/AppLayouts/Wallet/components/SetCurrencyModalContent.qml +++ b/ui/app/AppLayouts/Wallet/components/SetCurrencyModalContent.qml @@ -25,7 +25,8 @@ Item { id: tokenListView model: Currencies {} ScrollBar.vertical: ScrollBar { active: true } - + boundsBehavior: Flickable.StopAtBounds + delegate: Component { Item { anchors.right: parent.right