Skip to content

Commit

Permalink
fix ui scalability
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Oct 21, 2015
1 parent 658ac04 commit c7cac33
Show file tree
Hide file tree
Showing 21 changed files with 372 additions and 414 deletions.
2 changes: 1 addition & 1 deletion qml/Application.qml
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ ApplicationWindow {
property int systemPointSize: 11
function getFormattedPointSize()
{
return systemPointSize - 3
return systemPointSize
}
}
}
20 changes: 11 additions & 9 deletions qml/Block.qml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ ColumnLayout
transactionRepeater.itemAt(k).hideCalls()
}

Layout.minimumHeight: trHeight
function setHeight()
{
Layout.preferredHeight = calculateHeight()
height = calculateHeight()
Layout.minimumHeight = calculateHeight()
}

onOpenedTrChanged:
Expand All @@ -119,15 +119,19 @@ ColumnLayout

RowLayout
{
Layout.preferredHeight: trHeight
Layout.preferredWidth: blockWidth
id: rowHeader
spacing: 0
Rectangle
RowLayout
{
Layout.minimumHeight: trHeight
Rectangle
{
anchors.fill: parent
color: status === "mined" ? txColor : halfOpacity
}

Layout.preferredWidth: blockWidth
Layout.preferredHeight: trHeight
color: status === "mined" ? txColor : halfOpacity
anchors.left: parent.left
anchors.leftMargin: statusWidth
DefaultLabel {
Expand All @@ -151,7 +155,6 @@ ColumnLayout
anchors.right: parent.right
anchors.rightMargin: 10
visible: number === -2
height: 18
enabled: scenarioIndex !== -1
onClicked:
{
Expand Down Expand Up @@ -218,8 +221,7 @@ ColumnLayout
{
for (var k in calls)
callsModel.append(calls[k])
root.Layout.preferredHeight = calculateHeight()
root.height = calculateHeight()
root.Layout.minimumHeight = calculateHeight()
}

function hideCalls()
Expand Down
Loading

0 comments on commit c7cac33

Please sign in to comment.