From 994a621c59435f455593bdd971a3805f5b151f00 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 27 Mar 2017 10:30:32 +0200 Subject: Avoid scrolling to the end of the view if we don't have enough content items Because then we would essentially overscroll up --- components/package/contents/ui/ConversationView.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/package/contents') diff --git a/components/package/contents/ui/ConversationView.qml b/components/package/contents/ui/ConversationView.qml index aa3abcd2..589f3125 100644 --- a/components/package/contents/ui/ConversationView.qml +++ b/components/package/contents/ui/ConversationView.qml @@ -115,7 +115,7 @@ Rectangle { root.scrollToEnd = false; root.currentIndex = listView.count - 1 //positionViewAtEnd/Index don't work - listView.contentY = listView.contentHeight - listView.height + listView.contentY = Math.max(listView.contentHeight - listView.height, 0) } } -- cgit v1.2.3