From aefa7c95fa6654cd65e14d3a0fefd8f48f3dcc29 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: Sun, 19 Mar 2023 17:38:41 +0800 Subject: Somehow this forces the width to be right right away --- Course/Detail/Classic/Content/Main.ui.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Course/Detail/Classic/Content/Main.ui.qml b/Course/Detail/Classic/Content/Main.ui.qml index a499b52..08af710 100644 --- a/Course/Detail/Classic/Content/Main.ui.qml +++ b/Course/Detail/Classic/Content/Main.ui.qml @@ -44,11 +44,11 @@ ColumnLayout { GridView { id: tabs interactive: false - Layout.fillWidth: true Layout.topMargin: 16 Layout.bottomMargin: 16 cellWidth: 105.016 cellHeight: 46 + implicitWidth: parent.width implicitHeight: Math.ceil(count / Math.floor(count / (cellWidth * count -- cgit v1.2.3