aboutsummaryrefslogtreecommitdiffstats
path: root/examples/controls/gallery/pages/RangeSliderPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/controls/gallery/pages/RangeSliderPage.qml')
-rw-r--r--examples/controls/gallery/pages/RangeSliderPage.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/controls/gallery/pages/RangeSliderPage.qml b/examples/controls/gallery/pages/RangeSliderPage.qml
index 6eb6d5fb..c41097df 100644
--- a/examples/controls/gallery/pages/RangeSliderPage.qml
+++ b/examples/controls/gallery/pages/RangeSliderPage.qml
@@ -44,7 +44,7 @@ import Qt.labs.controls 1.0
Pane {
id: pane
- readonly property int itemWidth: Math.max(slider.implicitWidth, pane.availableWidth / 3)
+ readonly property int itemWidth: Math.max(slider.implicitWidth, Math.min(slider.implicitWidth * 2, pane.availableWidth / 3))
Column {
spacing: 40
@@ -53,6 +53,7 @@ Pane {
Label {
width: parent.width
wrapMode: Label.Wrap
+ horizontalAlignment: Qt.AlignHCenter
text: "RangeSlider is used to select a range specified by two values, by sliding each handle along a track."
}