Skip to content

Commit 6bedd3d

Browse files
committed
qml: Remove explicit height of BlockCounter
Label implicit height depends on the font size but the font size depends on the label height. This results in a runtime anchor loop warning.
1 parent cd5527f commit 6bedd3d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/qml/components/BlockCounter.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ Label {
1818
verticalAlignment: Text.AlignVCenter
1919
font.family: "Inter"
2020
font.styleName: "Semi Bold"
21-
font.pixelSize: height / 3
21+
font.pixelSize: 20
2222
text: blockHeight
2323
}

src/qml/pages/stub.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ ApplicationWindow {
2929
BitcoinCoreComponents.BlockCounter {
3030
id: blockCounter
3131
anchors.centerIn: parent
32-
height: parent.height / 3
3332
blockHeight: nodeModel.blockTipHeight
3433
}
3534
}

0 commit comments

Comments
 (0)