Dynamic subaddr table height, dont show history table when there is none

This commit is contained in:
Sander Ferdinand
2018-03-21 02:39:09 +01:00
committed by moneromooo-monero
parent 57c0477fc6
commit 5213daad77
5 changed files with 28 additions and 15 deletions

View File

@@ -171,6 +171,7 @@ Rectangle {
id: header
Layout.fillWidth: true
Layout.topMargin: 10
visible: table.count > 0
height: 10
color: "transparent"
@@ -210,8 +211,9 @@ Rectangle {
Rectangle {
id: tableRect
property int table_max_height: 240
Layout.fillWidth: true
Layout.preferredHeight: 240
Layout.preferredHeight: table.contentHeight < table_max_height ? table.contentHeight : table_max_height
color: "transparent"
Scroll {