Adjust scroll position handling when chat window height changes, fixes #418
This commit is contained in:
parent
388ea83e45
commit
b350487fb9
1 changed files with 7 additions and 2 deletions
|
@ -1050,8 +1050,13 @@ Page {
|
||||||
}
|
}
|
||||||
|
|
||||||
onHeightChanged: {
|
onHeightChanged: {
|
||||||
|
console.log("Height changed, previous: " + previousHeight + ", now: " + height);
|
||||||
|
if (previousHeight > height) {
|
||||||
var deltaHeight = previousHeight - height;
|
var deltaHeight = previousHeight - height;
|
||||||
chatView.contentY = chatView.contentY + deltaHeight;
|
chatView.contentY = chatView.contentY + deltaHeight;
|
||||||
|
} else {
|
||||||
|
chatView.handleScrollPositionChanged();
|
||||||
|
}
|
||||||
previousHeight = height;
|
previousHeight = height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue