MiddlePanel: dynamic content height

pull/2/head
selsta 5 years ago
parent 3c1fe1da8b
commit 96945c2c79
Signed by untrusted user: selsta
GPG Key ID: 2EA0A99A8B07AE5E

@ -125,51 +125,51 @@ Rectangle {
State { State {
name: "History" name: "History"
PropertyChanges { target: root; currentView: historyView } PropertyChanges { target: root; currentView: historyView }
PropertyChanges { target: mainFlickable; contentHeight: historyView.contentHeight + 100} PropertyChanges { target: mainFlickable; contentHeight: historyView.contentHeight + 80}
}, State { }, State {
name: "Transfer" name: "Transfer"
PropertyChanges { target: root; currentView: transferView } PropertyChanges { target: root; currentView: transferView }
PropertyChanges { target: mainFlickable; contentHeight: 700 } PropertyChanges { target: mainFlickable; contentHeight: transferView.transferHeight1 + transferView.transferHeight2 + 80 }
}, State { }, State {
name: "Receive" name: "Receive"
PropertyChanges { target: root; currentView: receiveView } PropertyChanges { target: root; currentView: receiveView }
PropertyChanges { target: mainFlickable; contentHeight: receiveView.receiveHeight + 100 } PropertyChanges { target: mainFlickable; contentHeight: receiveView.receiveHeight + 80 }
}, State { }, State {
name: "Merchant" name: "Merchant"
PropertyChanges { target: root; currentView: merchantView } PropertyChanges { target: root; currentView: merchantView }
PropertyChanges { target: mainFlickable; contentHeight: merchantView.merchantHeight + 100 } PropertyChanges { target: mainFlickable; contentHeight: merchantView.merchantHeight + 80 }
}, State { }, State {
name: "TxKey" name: "TxKey"
PropertyChanges { target: root; currentView: txkeyView } PropertyChanges { target: root; currentView: txkeyView }
PropertyChanges { target: mainFlickable; contentHeight: 1200 } PropertyChanges { target: mainFlickable; contentHeight: txkeyView.txkeyHeight + 80 }
}, State { }, State {
name: "SharedRingDB" name: "SharedRingDB"
PropertyChanges { target: root; currentView: sharedringdbView } PropertyChanges { target: root; currentView: sharedringdbView }
PropertyChanges { target: mainFlickable; contentHeight: sharedringdbView.panelHeight + 100 } PropertyChanges { target: mainFlickable; contentHeight: sharedringdbView.panelHeight + 80 }
}, State { }, State {
name: "AddressBook" name: "AddressBook"
PropertyChanges { target: root; currentView: addressBookView } PropertyChanges { target: root; currentView: addressBookView }
PropertyChanges { target: mainFlickable; contentHeight: minHeight } PropertyChanges { target: mainFlickable; contentHeight: addressBookView.addressbookHeight + 80 }
}, State { }, State {
name: "Sign" name: "Sign"
PropertyChanges { target: root; currentView: signView } PropertyChanges { target: root; currentView: signView }
PropertyChanges { target: mainFlickable; contentHeight: 1000 } PropertyChanges { target: mainFlickable; contentHeight: signView.signHeight + 80 }
}, State { }, State {
name: "Settings" name: "Settings"
PropertyChanges { target: root; currentView: settingsView } PropertyChanges { target: root; currentView: settingsView }
PropertyChanges { target: mainFlickable; contentHeight: settingsView.settingsHeight } PropertyChanges { target: mainFlickable; contentHeight: settingsView.settingsHeight }
}, State { }, State {
name: "Mining" name: "Mining"
PropertyChanges { target: root; currentView: miningView } PropertyChanges { target: root; currentView: miningView }
PropertyChanges { target: mainFlickable; contentHeight: 700} PropertyChanges { target: mainFlickable; contentHeight: miningView.miningHeight + 80 }
}, State { }, State {
name: "Keys" name: "Keys"
PropertyChanges { target: root; currentView: keysView } PropertyChanges { target: root; currentView: keysView }
PropertyChanges { target: mainFlickable; contentHeight: keysView.keysHeight } PropertyChanges { target: mainFlickable; contentHeight: keysView.keysHeight + 80}
}, State { }, State {
name: "Account" name: "Account"
PropertyChanges { target: root; currentView: accountView } PropertyChanges { target: root; currentView: accountView }
PropertyChanges { target: mainFlickable; contentHeight: accountView.accountHeight + 100 } PropertyChanges { target: mainFlickable; contentHeight: accountView.accountHeight + 80 }
} }
] ]

@ -44,6 +44,7 @@ import FontAwesome 1.0
Rectangle { Rectangle {
id: root id: root
color: "transparent" color: "transparent"
property alias addressbookHeight: mainLayout.height
property bool selectAndSend: false property bool selectAndSend: false
property bool editEntry: false property bool editEntry: false

@ -35,6 +35,7 @@ import moneroComponents.Wallet 1.0
Rectangle { Rectangle {
id: root id: root
color: "transparent" color: "transparent"
property alias miningHeight: mainLayout.height
property double currentHashRate: 0 property double currentHashRate: 0
ColumnLayout { ColumnLayout {

@ -37,6 +37,7 @@ import moneroComponents.WalletManager 1.0
import "../components" as MoneroComponents import "../components" as MoneroComponents
Rectangle { Rectangle {
property alias signHeight: mainLayout.height
property bool messageMode: true property bool messageMode: true
property bool fileMode: false property bool fileMode: false

@ -47,6 +47,8 @@ Rectangle {
signal sweepUnmixableClicked() signal sweepUnmixableClicked()
color: "transparent" color: "transparent"
property alias transferHeight1: pageRoot.height
property alias transferHeight2: advancedLayout.height
property int mixin: 10 // (ring size 11) property int mixin: 10 // (ring size 11)
property string warningContent: "" property string warningContent: ""
property string sendButtonWarning: "" property string sendButtonWarning: ""
@ -435,15 +437,8 @@ Rectangle {
} // pageRoot } // pageRoot
Rectangle {
id: desaturate
color:"black"
anchors.fill: parent
opacity: 0.1
visible: (pageRoot.enabled)? 0 : 1;
}
ColumnLayout { ColumnLayout {
id: advancedLayout
anchors.top: pageRoot.bottom anchors.top: pageRoot.bottom
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right

@ -37,8 +37,8 @@ import moneroComponents.Clipboard 1.0
import "../js/TxUtils.js" as TxUtils import "../js/TxUtils.js" as TxUtils
Rectangle { Rectangle {
color: "transparent" color: "transparent"
property alias txkeyHeight: mainLayout.height
Clipboard { id: clipboard } Clipboard { id: clipboard }