Calculate the position of the scrollbar handle correctly
authorAndy Shaw <andy.shaw@digia.com>
Fri, 2 May 2014 07:12:49 +0000 (09:12 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 2 May 2014 09:19:07 +0000 (11:19 +0200)
commit0aefd523d2d06db514c924ebf3cc09e19ba91b29
treeda6212086972ec99b7740049936c95dc9985b447
parenteff1d637159ab6fe3f4c5ca50bbb148da06cc939
Calculate the position of the scrollbar handle correctly

When the width of the flickable in the ScrollArea was changing dynamically
so it ended up with an originX that was not 0 then it would not calculate
the leftMargin of the scrollbar correctly. The calculation here is done
based on how QStyle calculates it for consistency.

Change-Id: Ieb247f77ab10eba4015eed897d3babb94c752743
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
src/controls/Styles/Base/ScrollViewStyle.qml