aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-07-12 20:36:52 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-07-12 20:36:52 -0500
commitb3402b3d4e9c7ceee386c954d7085621f973b451 (patch)
tree2d0b56dc60e1252bc298dbcb188222216f10c8e7
parent5b411b471e6fef507b074fe061c5424d02c6eb42 (diff)
parent5f5f2103c0b8236c91ac127743e39697c24909bc (diff)
downloadmonzero-gui-b3402b3d4e9c7ceee386c954d7085621f973b451.tar.gz
monzero-gui-b3402b3d4e9c7ceee386c954d7085621f973b451.tar.xz
monzero-gui-b3402b3d4e9c7ceee386c954d7085621f973b451.zip
Merge pull request #2251
5f5f210 History: dynamic number of tx rows (selsta)
-rw-r--r--pages/History.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/pages/History.qml b/pages/History.qml
index c9a0d525..0610d657 100644
--- a/pages/History.qml
+++ b/pages/History.qml
@@ -49,9 +49,9 @@ Rectangle {
property var model
property int sideMargin: 50
property var initialized: false
- property int txMax: 5
+ property int txMax: Math.max(5, ((appWindow.height - 250) / 60))
property int txOffset: 0
- property int txPage: (txOffset / 5) + 1
+ property int txPage: (txOffset / txMax) + 1
property int txCount: 0
property var sortSearchString: null
property bool sortDirection: true // true = desc, false = asc
@@ -67,6 +67,8 @@ Rectangle {
color: "transparent"
+ onTxMaxChanged: root.updateDisplay(root.txOffset, root.txMax);
+
ColumnLayout {
id: pageRoot
anchors.topMargin: 40
@@ -1345,7 +1347,6 @@ Rectangle {
function reset() {
root.txOffset = 0;
- root.txMax = 5;
if (typeof root.model !== 'undefined' && root.model != null) {
root.model.dateFromFilter = "2014-04-18" // genesis block