From f7e3a33cb80f3cc289aea9e59f53111d730b5927 Mon Sep 17 00:00:00 2001 From: Damian Jansen Date: Tue, 15 May 2012 14:32:07 +1000 Subject: Clean up visuals of elements test Elements were not being displayed correctly on small screens, i.e. devices. Should anchor these to the bottom, rather than center. Also fix layout element child positions, as opacity is not used to determine placement - use visible property instead. Change-Id: I9fff7e64f3f03f1a4d60a242fb8f95629da6f7c9 Reviewed-by: Michael Brasser --- tests/testapplications/elements/content/FlipableElement.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/testapplications/elements/content/FlipableElement.qml') diff --git a/tests/testapplications/elements/content/FlipableElement.qml b/tests/testapplications/elements/content/FlipableElement.qml index cb2b11c532..77187bd3a2 100644 --- a/tests/testapplications/elements/content/FlipableElement.qml +++ b/tests/testapplications/elements/content/FlipableElement.qml @@ -49,7 +49,9 @@ Item { Flipable { id: flipableelement height: 250; width: 250 - anchors.centerIn: parent + anchors.horizontalCenter: parent.horizontalCenter + anchors.bottom: parent.bottom + anchors.bottomMargin: 15 front: Rectangle { color: "green"; anchors.fill: parent; border.color: "gray"; border.width: 3; opacity: .9; radius: 20; clip: true } back: Rectangle { color: "red"; anchors.fill: parent; border.color: "gray"; border.width: 3; opacity: .9; radius: 20; clip: true } transform: Rotation { -- cgit v1.2.3