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/ImageElement.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/testapplications/elements/content/ImageElement.qml') diff --git a/tests/testapplications/elements/content/ImageElement.qml b/tests/testapplications/elements/content/ImageElement.qml index b56d6e9bec..65000eee08 100644 --- a/tests/testapplications/elements/content/ImageElement.qml +++ b/tests/testapplications/elements/content/ImageElement.qml @@ -49,7 +49,9 @@ Item { Item { id: imageelementcontainer height: 100; width: 100; clip: true - anchors.centerIn: parent + anchors.horizontalCenter: parent.horizontalCenter + anchors.bottom: parent.bottom + anchors.bottomMargin: 15 Behavior on height { NumberAnimation { duration: 1000 } } Behavior on width { NumberAnimation { duration: 1000 } } Image { -- cgit v1.2.3