diff options
Diffstat (limited to 'examples/declarative/ui-components/scrollbar/ScrollBar.qml')
-rw-r--r-- | examples/declarative/ui-components/scrollbar/ScrollBar.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/declarative/ui-components/scrollbar/ScrollBar.qml b/examples/declarative/ui-components/scrollbar/ScrollBar.qml index ba9a52a..9927ecb 100644 --- a/examples/declarative/ui-components/scrollbar/ScrollBar.qml +++ b/examples/declarative/ui-components/scrollbar/ScrollBar.qml @@ -60,6 +60,7 @@ Item { 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) |