From 196abdd6d1c651867aa397eff814e57a2c49b484 Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Wed, 2 Dec 2020 23:46:29 +0100 Subject: [PATCH] Workaround for ChatPage flickable issues (moving strangely sometimes) --- qml/pages/ChatPage.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/qml/pages/ChatPage.qml b/qml/pages/ChatPage.qml index b608730..369c2b8 100644 --- a/qml/pages/ChatPage.qml +++ b/qml/pages/ChatPage.qml @@ -577,6 +577,17 @@ Page { SilicaFlickable { id: chatContainer + + onContentYChanged: { + // For some strange reason contentY sometimes is > 0 which doesn't make sense without a PushUpMenu (?) + // That leads to the problem that the whole flickable is moved slightly (or sometimes considerably) up + // which creates UX issues... As a workaround we are setting it to 0 in such cases. + // Better solutions are highly appreciated, contributions always welcome! ;) + if (contentY > 0) { + contentY = 0; + } + } + anchors.fill: parent contentHeight: height contentWidth: width