summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-07-25 22:10:30 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-07-25 22:10:30 +0200
commitcbb4356b192d8401153d207ad14dbdbdaac2d6da (patch)
tree50b254b9aba8d30227212140c9b03d786382a276
parentFix binding loop and non integer text height (diff)
downloadnheko-cbb4356b192d8401153d207ad14dbdbdaac2d6da.tar.xz
Fix more non integer heights
-rw-r--r--resources/qml/delegates/ImageMessage.qml4
-rw-r--r--resources/qml/delegates/PlayableMediaMessage.qml2
2 files changed, 3 insertions, 3 deletions
diff --git a/resources/qml/delegates/ImageMessage.qml b/resources/qml/delegates/ImageMessage.qml

index 62d9de60..3885ddae 100644 --- a/resources/qml/delegates/ImageMessage.qml +++ b/resources/qml/delegates/ImageMessage.qml
@@ -9,8 +9,8 @@ Item { property double divisor: model.isReply ? 4 : 2 property bool tooHigh: tempHeight > timelineRoot.height / divisor - height: tooHigh ? timelineRoot.height / divisor : tempHeight - width: tooHigh ? (timelineRoot.height / divisor) / model.data.proportionalHeight : tempWidth + height: Math.round(tooHigh ? timelineRoot.height / divisor : tempHeight) + width: Math.round(tooHigh ? (timelineRoot.height / divisor) / model.data.proportionalHeight : tempWidth) Image { id: blurhash diff --git a/resources/qml/delegates/PlayableMediaMessage.qml b/resources/qml/delegates/PlayableMediaMessage.qml
index bab524eb..8d2fa8a8 100644 --- a/resources/qml/delegates/PlayableMediaMessage.qml +++ b/resources/qml/delegates/PlayableMediaMessage.qml
@@ -9,7 +9,7 @@ Rectangle { id: bg radius: 10 color: colors.dark - height: content.height + 24 + height: Math.round(content.height + 24) width: parent ? parent.width : undefined Column {