diff -r 5dc02b23752f -r 3e2da88830cd examples/declarative/ui-components/scrollbar/ScrollBar.qml --- a/examples/declarative/ui-components/scrollbar/ScrollBar.qml Tue Jul 06 15:10:48 2010 +0300 +++ b/examples/declarative/ui-components/scrollbar/ScrollBar.qml Wed Aug 18 10:37:55 2010 +0300 @@ -60,6 +60,7 @@ color: "white" opacity: 0.3 } + // Size the bar to the required size, depending upon the orientation. Rectangle { x: orientation == Qt.Vertical ? 1 : (scrollBar.position * (scrollBar.width-2) + 1)