Commit d727a1f5 authored by Chupligin Sergey's avatar Chupligin Sergey

[ListView] fix scroll decorator offset

parent d08ab4e9
......@@ -67,20 +67,17 @@ ListView {
Rectangle{
id: scrollerDecorator
visible: listView.showDecorator
visible: (listView.showDecorator && listView.contentHeight > listView.height)
color: "#0091e5"
width: 5
height: listView.height*listView.height/listView.contentHeight
y: (listView.height-scrollerDecorator.height)*listView.contentY/listView.height
y: (listView.height)/listView.contentHeight*listView.contentY
anchors{
right: listView.right
rightMargin: 4
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment