diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-11-16 14:34:37 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-11-16 14:34:37 +0800 |
commit | 88686aaa19e47d09952f9fb8094aaffdfca34003 (patch) | |
tree | f765012fa50934ca1e6abb9cf9a47c3824c8e542 | |
parent | c196228c23cee41f01b1ef17a67bfab06c70b3cd (diff) |
Fix cell height
-rw-r--r-- | DefaultHome.ui.qml | 9 |
1 files 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 |