Fine tuning margins
authorSami Rämö <sami.ramo@ixonos.com>
Mon, 22 Nov 2010 15:38:21 +0000 (17:38 +0200)
committerSami Rämö <sami.ramo@ixonos.com>
Mon, 22 Nov 2010 15:38:21 +0000 (17:38 +0200)
src/qmlui/DetailEditorRow.qml

index 640f997..05c4cad 100644 (file)
@@ -11,14 +11,14 @@ Item {
     anchors.right: parent.right
     width: parent.width
 //    height: messageEditor.height > image.height ? messageEditor.height : image.height
-    height: charactersLeftRect.height + textEditRow.height
+    height: textEditRow.y + textEditRow.height + 3
+    clip: true
 
     Rectangle {
         id: charactersLeftRect
-        height: charactersLeft.height
-        width: charactersLeft.width
-        anchors.top: parent.top
-        anchors.horizontalCenter: messageEditorRect.horizontalCenter
+        anchors.fill: charactersLeft
+        anchors.leftMargin: -4
+        anchors.rightMargin: anchors.leftMargin
         border { color: "black"; width: 1 }
         color: "white"
         radius: 5
@@ -28,7 +28,8 @@ Item {
 
     Text {
         id: charactersLeft
-        anchors.centerIn: charactersLeftRect
+        anchors.top: parent.top
+        anchors.horizontalCenter: messageEditorRect.horizontalCenter
         font.pixelSize: 14
         opacity: 0
         Behavior on opacity { NumberAnimation { duration: animationDuration } }