From 7784687087b8531db2fb2890c8f7ea17240b36ac Mon Sep 17 00:00:00 2001
From: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Date: Wed, 20 Feb 2013 19:23:30 +0100
Subject: [PATCH] Gallery: Allow resizing text area

Change-Id: I0ecb9cdf6ff37536fc78a4438ae102c7c5c6be9c
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
---
 examples/gallery/content/Controls.qml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/examples/gallery/content/Controls.qml b/examples/gallery/content/Controls.qml
index 844e39424..66a446b58 100644
--- a/examples/gallery/content/Controls.qml
+++ b/examples/gallery/content/Controls.qml
@@ -55,6 +55,7 @@ Item {
         anchors.margins: 8
         spacing: 16
         Column {
+            id: firstColumn
             spacing: 9
             Row {
                 spacing:8
@@ -118,6 +119,11 @@ Item {
         Column {
             id: rightcol
             spacing: 12
+            anchors {
+                top: parent.top
+                bottom: parent.bottom
+            }
+
             GroupBox {
                 id: group1
                 title: "CheckBox"
@@ -168,6 +174,12 @@ Item {
                 frame: frameCheckbox.checked
                 text: loremIpsum + loremIpsum
                 KeyNavigation.tab: button1
+                width: contentRow.width - firstColumn.width - contentRow.spacing
+                height: parent.height - group1.height - group2.height - 2 * parent.spacing
+                anchors {
+                    right: parent.right
+                    rightMargin: 12
+                }
             }
         }
     }
-- 
GitLab