pages mobile scaling

This commit is contained in:
Jaquee
2017-08-07 16:05:54 +02:00
parent 9e0db8f4ff
commit 4dc0d36b98
5 changed files with 47 additions and 89 deletions

View File

@@ -488,7 +488,7 @@ Rectangle {
ListModel {
id: columnsModel
property int pidWidth: 127 * scaleRatio
ListElement { columnName: "Payment ID"; columnWidth: 127 }
ListElement { columnName: "Date"; columnWidth: 100 }
ListElement { columnName: "Block height"; columnWidth: 150 }
@@ -498,12 +498,13 @@ Rectangle {
TableHeader {
id: header
visible: !isMobile
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.topMargin: 17
anchors.leftMargin: 14
anchors.rightMargin: 14
anchors.topMargin: 17 * scaleRatio
anchors.leftMargin: 14 * scaleRatio
anchors.rightMargin: 14 * scaleRatio
dataModel: columnsModel
offset: 20
onSortRequest: {
@@ -533,7 +534,7 @@ Rectangle {
Scroll {
id: flickableScroll
anchors.right: table.right
anchors.rightMargin: -14
anchors.rightMargin: !isMobile ? -14 * scaleRatio : 0
anchors.top: table.top
anchors.bottom: table.bottom
flickable: table
@@ -545,8 +546,8 @@ Rectangle {
anchors.right: parent.right
anchors.top: header.bottom
anchors.bottom: parent.bottom
anchors.leftMargin: 14
anchors.rightMargin: 14
anchors.leftMargin: 14 * scaleRatio
anchors.rightMargin: 14 * scaleRatio
onContentYChanged: flickableScroll.flickableContentYChanged()
model: root.model
addressBookModel: null