From ac074bf239e6d4aa6712752ef43df27d5e2dcb76 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 12 Jul 2015 10:52:44 -0700 Subject: QML UI: start making things resolution independent Don't hard code sizes as devices tend to have much higher pixel density than desktop computers. Instead make sizes relative to the content. Signed-off-by: Dirk Hohndel --- qt-mobile/DiveList.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qt-mobile/DiveList.qml') diff --git a/qt-mobile/DiveList.qml b/qt-mobile/DiveList.qml index 3ba2de3c7..40507e26a 100644 --- a/qt-mobile/DiveList.qml +++ b/qt-mobile/DiveList.qml @@ -17,7 +17,7 @@ Rectangle { property real detailsOpacity : 0 width: diveListView.width - height: 70 + height: childrenRect.height //Bounded rect for the background Rectangle { @@ -38,11 +38,11 @@ Rectangle { //And other details at the bottom. Row { id: topLayout - x: 10; y: 10; height: 60; width: parent.width + x: 10; y: 10; height: childrenRect.height; width: parent.width spacing: 10 Column { - width: background.width; height: 60 + width: background.width; height: childrenRect.height * 1.1 spacing: 5 Text { -- cgit v1.2.3-70-g09d2