Commit 51bfb7e3 authored by Thomas Hartmann's avatar Thomas Hartmann

WelcomePage: fix scrolling of sessions

Change-Id: I8a30d94040fa6fffe318c98782120123093d6666
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@nokia.com>
parent 9bbfb899
......@@ -76,8 +76,7 @@ Item {
anchors.fill: parent
verticalMinimumValue: vscrollbar.minimumValue
verticalMaximumValue: vscrollbar.maximumValue
onVerticalValueChanged: root.contentY = Math.round(verticalValue / root.delegateHeight) * root.delegateHeight
onVerticalValueChanged: root.contentY = verticalValue
}
ScrollBar {
......@@ -92,7 +91,7 @@ Item {
anchors.bottom: parent.bottom
singleStep: root.delegateHeight
anchors.topMargin: styleitem.style === "mac" ? 1 : 0
onValueChanged: root.contentY = Math.round(value / root.delegateHeight) * root.delegateHeight
onValueChanged: root.contentY = value
anchors.rightMargin: styleitem.frameoffset
anchors.bottomMargin: styleitem.frameoffset
value: root.contentY
......
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