mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-10 08:35:54 +00:00
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…
x
Reference in New Issue
Block a user