WelcomePage: fix scrolling of sessions

Change-Id: I8a30d94040fa6fffe318c98782120123093d6666
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
This commit is contained in:
Thomas Hartmann
2012-03-15 12:55:33 +01:00
parent 9bbfb89953
commit 51bfb7e351

View File

@@ -76,8 +76,7 @@ Item {
anchors.fill: parent anchors.fill: parent
verticalMinimumValue: vscrollbar.minimumValue verticalMinimumValue: vscrollbar.minimumValue
verticalMaximumValue: vscrollbar.maximumValue verticalMaximumValue: vscrollbar.maximumValue
onVerticalValueChanged: root.contentY = verticalValue
onVerticalValueChanged: root.contentY = Math.round(verticalValue / root.delegateHeight) * root.delegateHeight
} }
ScrollBar { ScrollBar {
@@ -92,7 +91,7 @@ Item {
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
singleStep: root.delegateHeight singleStep: root.delegateHeight
anchors.topMargin: styleitem.style === "mac" ? 1 : 0 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.rightMargin: styleitem.frameoffset
anchors.bottomMargin: styleitem.frameoffset anchors.bottomMargin: styleitem.frameoffset
value: root.contentY value: root.contentY