aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-04-10 12:08:36 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-04-11 13:04:41 +0000
commit8fd632c65e215925fed12e3b21ab98b77382e3ab (patch)
tree36f26db8a7e68298e3e867a96bbaf2d06e78fa5d /src/imports
parent199962af4d107c5681c1601298195069dc437ecc (diff)
Universal: fix vertical RangeSlider
Change-Id: I7b4b34e77c2bee4890871615d31af2f52afb39ac Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/controls/universal/RangeSlider.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/controls/universal/RangeSlider.qml b/src/imports/controls/universal/RangeSlider.qml
index c9dfc8d0..afbf18b1 100644
--- a/src/imports/controls/universal/RangeSlider.qml
+++ b/src/imports/controls/universal/RangeSlider.qml
@@ -106,7 +106,7 @@ T.RangeSlider {
}
Rectangle {
- x: parent.horizontal ? control.first.position * parent.width : 0
+ x: parent.horizontal ? control.first.position * parent.width : (parent.width - width) / 2
y: parent.horizontal ? (parent.height - height) / 2 : control.second.visualPosition * parent.height
width: parent.horizontal ? control.second.position * parent.width - control.first.position * parent.width : 2 // SliderBackgroundThemeHeight
height: !parent.horizontal ? control.second.position * parent.height - control.first.position * parent.height : 2 // SliderBackgroundThemeHeight