From d619302026e10cc2117c96f1003ef70e9b1f378a 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: Fri, 3 Mar 2023 09:25:56 +0800 Subject: Correct the index referred on previous commit --- HomeDefault.ui.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'HomeDefault.ui.qml') diff --git a/HomeDefault.ui.qml b/HomeDefault.ui.qml index 0f706cf..be11a37 100644 --- a/HomeDefault.ui.qml +++ b/HomeDefault.ui.qml @@ -272,15 +272,15 @@ Flickable { currentIndex: tabs.currentIndex Layout.preferredHeight: width < 576 ? width * 1.3 - * tabsContent.itemAt(tabsContent.index).count + * tabsContent.itemAt(currentIndex).count : width < 768 ? width / 2 * 1.3 - * (tabsContent.itemAt(tabsContent.index).count + tabsContent.itemAt(tabsContent.index).count % 2) / 2 + * (tabsContent.itemAt(currentIndex).count + tabsContent.itemAt(currentIndex).count % 2) / 2 : width < 992 ? width / 3 * 1.3 - * (tabsContent.itemAt(tabsContent.index).count + (tabsContent.itemAt(tabsContent.index).count + 1) % 3) / 3 + * (tabsContent.itemAt(currentIndex).count + (tabsContent.itemAt(currentIndex).count + 1) % 3) / 3 : width / 4 * 1.3 - * (tabsContent.itemAt(tabsContent.index).count + (tabsContent.itemAt(tabsContent.index).count + 2) % 4) / 4 + * (tabsContent.itemAt(currentIndex).count + (tabsContent.itemAt(currentIndex).count + 2) % 4) / 4 Repeater { id: tabsContent -- cgit v1.2.3