fixed max line computation
This commit is contained in:
parent
3225fb65fa
commit
b8e5a90ae6
|
@ -33,9 +33,7 @@ Rectangle {
|
|||
animation.start()
|
||||
|
||||
}
|
||||
|
||||
console.debug(width + "x" + height)
|
||||
console.debug(body.maximumLineCount)
|
||||
|
||||
}
|
||||
|
||||
NumberAnimation{
|
||||
|
@ -84,7 +82,7 @@ Rectangle {
|
|||
anchors.left: image.right
|
||||
anchors.leftMargin: 5
|
||||
wrapMode: Text.WordWrap
|
||||
maximumLineCount: root.height / font.pixelSize - 3
|
||||
maximumLineCount: height / font.pixelSize - 1
|
||||
onLinkActivated: Qt.openUrlExternally(link)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue