summaryrefslogtreecommitdiff
path: root/HomeDefault.ui.qml
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-05 18:45:44 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-05 18:45:44 +0800
commit7c8bd6570ad88fff25bf0467e1c54b1e577171cc (patch)
tree45dd06d58a5ecc611023aca9bf1e2c1b8aedf9d8 /HomeDefault.ui.qml
parent15e48f1990d201cc3b3cdf3748b0806fa449112b (diff)
Fix (not perfect yet) tabs height
Diffstat (limited to 'HomeDefault.ui.qml')
-rw-r--r--HomeDefault.ui.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/HomeDefault.ui.qml b/HomeDefault.ui.qml
index 9b1276d..4c6bb47 100644
--- a/HomeDefault.ui.qml
+++ b/HomeDefault.ui.qml
@@ -262,7 +262,7 @@ Flickable {
}
cellWidth: 142
cellHeight: 46
- implicitHeight: width < 284 ? cellHeight * 5 : width < 426 ? cellHeight * 3 : width < 710 ? cellHeight * 2 : cellHeight
+ implicitHeight: Math.min(Math.ceil(cellWidth * count / width) * cellHeight, count * cellHeight)
model: ["Web Design", "Development", "Graphic Design", "Marketing", "Finance"]
delegate: TabItem {}
}