From 88686aaa19e47d09952f9fb8094aaffdfca34003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Wed, 16 Nov 2022 14:34:37 +0800 Subject: Fix cell height --- DefaultHome.ui.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/DefaultHome.ui.qml b/DefaultHome.ui.qml index 9cf4f08..18b6a6a 100644 --- a/DefaultHome.ui.qml +++ b/DefaultHome.ui.qml @@ -30,8 +30,8 @@ ScrollView { } delegate: Item { - width: counter.cellWidth - height: 125.6 + implicitWidth: counter.cellWidth + implicitHeight: counter.cellHeight Rectangle { color: bgColor radius: 8 @@ -64,9 +64,10 @@ ScrollView { cellWidth: width < 576 ? width : width < 768 ? width / 2 : width < 992 ? width / 3 : width / 4 - cellHeight: cellWidth * 1.3 + cellHeight: 125.6 - height: 100 + height: width < 576 ? cellHeight : width < 768 ? cellHeight * 2 + : width < 992 ? cellHeight * 3 : cellHeight * 4 anchors { top: parent.top left: parent.left -- cgit v1.2.3