summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-05-01 00:21:13 +0200
committerGitHub <noreply@github.com>2020-05-01 00:21:13 +0200
commit00c4d2629aadc38fb6cecb67922d12085988cfc9 (patch)
tree4462ebb39f7a5aa0626ed4f26ac292bd963e9de0 /resources
parentStrip reply fallback from plain text body (diff)
parentOptimize RoomList sorting (diff)
downloadnheko-00c4d2629aadc38fb6cecb67922d12085988cfc9.tar.xz
Merge pull request #188 from Nheko-Reborn/optimize-cpu-usage
Optimize cpu usage
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/TimelineView.qml18
1 files changed, 9 insertions, 9 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml

index c42cd6e9..7df2ed0b 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml
@@ -17,6 +17,10 @@ Page { palette: colors + FontMetrics { + id: fontMetrics + } + Settings { id: settings category: "user" @@ -116,10 +120,10 @@ Page { boundsBehavior: Flickable.StopAtBounds - ScrollHelper { - flickable: parent - anchors.fill: parent - } + ScrollHelper { + flickable: parent + anchors.fill: parent + } Shortcut { sequence: StandardKey.MoveToPreviousPage @@ -256,7 +260,7 @@ Page { Rectangle { id: chatFooter - height: Math.max(16, footerContent.height) + height: Math.max(fontMetrics.height * 1.2, footerContent.height) anchors.left: parent.left anchors.right: parent.right anchors.bottom: parent.bottom @@ -326,8 +330,4 @@ Page { } } } - - FontMetrics { - id: fontMetrics - } }