aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/gallery/pages/ComboBoxPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols2/gallery/pages/ComboBoxPage.qml')
-rw-r--r--examples/quickcontrols2/gallery/pages/ComboBoxPage.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/quickcontrols2/gallery/pages/ComboBoxPage.qml b/examples/quickcontrols2/gallery/pages/ComboBoxPage.qml
index bf2b70d8..c800ba73 100644
--- a/examples/quickcontrols2/gallery/pages/ComboBoxPage.qml
+++ b/examples/quickcontrols2/gallery/pages/ComboBoxPage.qml
@@ -41,8 +41,8 @@
import QtQuick 2.6
import QtQuick.Controls 2.1
-Pane {
- id: pane
+ScrollablePage {
+ id: page
Column {
spacing: 40
@@ -58,7 +58,7 @@ Pane {
ComboBox {
model: ["First", "Second", "Third"]
- width: Math.max(implicitWidth, Math.min(implicitWidth * 2, pane.availableWidth / 3))
+ width: Math.max(implicitWidth, Math.min(implicitWidth * 2, page.availableWidth / 3))
anchors.horizontalCenter: parent.horizontalCenter
}
}