summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-27 10:30:32 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-27 10:30:32 +0200
commit994a621c59435f455593bdd971a3805f5b151f00 (patch)
tree3ded5a6f8034a1f942212e184f1f37b7fc074e32 /components/package/contents/ui
parent58d75be423663d9dbe8dad3f311849776c8fa65a (diff)
downloadkube-994a621c59435f455593bdd971a3805f5b151f00.tar.gz
kube-994a621c59435f455593bdd971a3805f5b151f00.zip
Avoid scrolling to the end of the view if we don't have enough content
items Because then we would essentially overscroll up
Diffstat (limited to 'components/package/contents/ui')
-rw-r--r--components/package/contents/ui/ConversationView.qml2
1 files changed, 1 insertions, 1 deletions
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 {
115 root.scrollToEnd = false; 115 root.scrollToEnd = false;
116 root.currentIndex = listView.count - 1 116 root.currentIndex = listView.count - 1
117 //positionViewAtEnd/Index don't work 117 //positionViewAtEnd/Index don't work
118 listView.contentY = listView.contentHeight - listView.height 118 listView.contentY = Math.max(listView.contentHeight - listView.height, 0)
119 } 119 }
120 } 120 }
121 121