Workaround for ChatPage flickable issues (moving strangely sometimes)
This commit is contained in:
parent
cff35e6058
commit
196abdd6d1
1 changed files with 11 additions and 0 deletions
|
@ -577,6 +577,17 @@ Page {
|
||||||
|
|
||||||
SilicaFlickable {
|
SilicaFlickable {
|
||||||
id: chatContainer
|
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
|
anchors.fill: parent
|
||||||
contentHeight: height
|
contentHeight: height
|
||||||
contentWidth: width
|
contentWidth: width
|
||||||
|
|
Loading…
Reference in a new issue