aboutsummaryrefslogtreecommitdiffstats
path: root/examples/controls/gallery/pages/ComboBoxPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/controls/gallery/pages/ComboBoxPage.qml')
-rw-r--r--examples/controls/gallery/pages/ComboBoxPage.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/controls/gallery/pages/ComboBoxPage.qml b/examples/controls/gallery/pages/ComboBoxPage.qml
index 44295450..3c497c48 100644
--- a/examples/controls/gallery/pages/ComboBoxPage.qml
+++ b/examples/controls/gallery/pages/ComboBoxPage.qml
@@ -51,13 +51,14 @@ Pane {
Label {
width: parent.width
wrapMode: Label.Wrap
+ horizontalAlignment: Qt.AlignHCenter
text: "ComboBox is a combined button and popup list. It provides means of presenting a "
+ "list of options to the user in a way that takes up the minimum amount of screen space."
}
ComboBox {
model: ["First", "Second", "Third"]
- width: Math.max(implicitWidth, pane.availableWidth / 3)
+ width: Math.max(implicitWidth, Math.min(implicitWidth * 2, pane.availableWidth / 3))
anchors.horizontalCenter: parent.horizontalCenter
}
}