aboutsummaryrefslogtreecommitdiffstats
path: root/examples/controls/gallery/pages/DrawerPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/controls/gallery/pages/DrawerPage.qml')
-rw-r--r--examples/controls/gallery/pages/DrawerPage.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/controls/gallery/pages/DrawerPage.qml b/examples/controls/gallery/pages/DrawerPage.qml
index fe6e07d3..910a0c7c 100644
--- a/examples/controls/gallery/pages/DrawerPage.qml
+++ b/examples/controls/gallery/pages/DrawerPage.qml
@@ -51,6 +51,7 @@ Pane {
Label {
width: parent.width
wrapMode: Label.Wrap
+ horizontalAlignment: Qt.AlignHCenter
text: "Drawer provides a swipe-based side panel, similar to those often used "
+ "in touch interfaces to provide a central location for navigation."
}
@@ -58,7 +59,7 @@ Pane {
Button {
text: "Open"
anchors.horizontalCenter: parent.horizontalCenter
- width: Math.max(implicitWidth, pane.availableWidth / 3)
+ width: Math.max(implicitWidth, Math.min(implicitWidth * 2, pane.availableWidth / 3))
onClicked: drawer.open()
}