mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 19:49:34 +00:00
Reset flickable scrollview to 0 Y position
This commit is contained in:
parent
3b76636d6b
commit
1378ae45c3
2 changed files with 13 additions and 1 deletions
|
@ -50,6 +50,7 @@ Rectangle {
|
|||
property string unlockedBalanceText
|
||||
property int minHeight: (appWindow.height > 800) ? appWindow.height : 800 * scaleRatio
|
||||
property alias contentHeight: mainFlickable.contentHeight
|
||||
property alias flickable: mainFlickable
|
||||
// property int headerHeight: header.height
|
||||
|
||||
property Transfer transferView: Transfer { }
|
||||
|
|
13
main.qml
13
main.qml
|
@ -1317,6 +1317,7 @@ ApplicationWindow {
|
|||
anchors.bottom: parent.bottom
|
||||
onDashboardClicked: {
|
||||
middlePanel.state = "Dashboard";
|
||||
middlePanel.flickable.contentY = 0;
|
||||
if(isMobile) {
|
||||
hideMenu();
|
||||
}
|
||||
|
@ -1325,6 +1326,8 @@ ApplicationWindow {
|
|||
|
||||
onTransferClicked: {
|
||||
middlePanel.state = "Transfer";
|
||||
middlePanel.flickable.contentY = 0;
|
||||
mainFlickable.contentY = 0;
|
||||
if(isMobile) {
|
||||
hideMenu();
|
||||
}
|
||||
|
@ -1333,6 +1336,7 @@ ApplicationWindow {
|
|||
|
||||
onReceiveClicked: {
|
||||
middlePanel.state = "Receive";
|
||||
middlePanel.flickable.contentY = 0;
|
||||
if(isMobile) {
|
||||
hideMenu();
|
||||
}
|
||||
|
@ -1341,6 +1345,7 @@ ApplicationWindow {
|
|||
|
||||
onTxkeyClicked: {
|
||||
middlePanel.state = "TxKey";
|
||||
middlePanel.flickable.contentY = 0;
|
||||
if(isMobile) {
|
||||
hideMenu();
|
||||
}
|
||||
|
@ -1349,6 +1354,7 @@ ApplicationWindow {
|
|||
|
||||
onSharedringdbClicked: {
|
||||
middlePanel.state = "SharedRingDB";
|
||||
middlePanel.flickable.contentY = 0;
|
||||
if(isMobile) {
|
||||
hideMenu();
|
||||
}
|
||||
|
@ -1357,6 +1363,7 @@ ApplicationWindow {
|
|||
|
||||
onHistoryClicked: {
|
||||
middlePanel.state = "History";
|
||||
middlePanel.flickable.contentY = 0;
|
||||
if(isMobile) {
|
||||
hideMenu();
|
||||
}
|
||||
|
@ -1365,6 +1372,7 @@ ApplicationWindow {
|
|||
|
||||
onAddressBookClicked: {
|
||||
middlePanel.state = "AddressBook";
|
||||
middlePanel.flickable.contentY = 0;
|
||||
if(isMobile) {
|
||||
hideMenu();
|
||||
}
|
||||
|
@ -1373,6 +1381,7 @@ ApplicationWindow {
|
|||
|
||||
onMiningClicked: {
|
||||
middlePanel.state = "Mining";
|
||||
middlePanel.flickable.contentY = 0;
|
||||
if(isMobile) {
|
||||
hideMenu();
|
||||
}
|
||||
|
@ -1381,6 +1390,7 @@ ApplicationWindow {
|
|||
|
||||
onSignClicked: {
|
||||
middlePanel.state = "Sign";
|
||||
middlePanel.flickable.contentY = 0;
|
||||
if(isMobile) {
|
||||
hideMenu();
|
||||
}
|
||||
|
@ -1389,11 +1399,12 @@ ApplicationWindow {
|
|||
|
||||
onSettingsClicked: {
|
||||
middlePanel.state = "Settings";
|
||||
middlePanel.flickable.contentY = 0;
|
||||
if(isMobile) {
|
||||
hideMenu();
|
||||
}
|
||||
updateBalance();
|
||||
}
|
||||
}
|
||||
|
||||
onKeysClicked: {
|
||||
passwordDialog.onAcceptedCallback = function() {
|
||||
|
|
Loading…
Reference in a new issue