From a4ce0b667ca2ef1ce8925496f1b06203c6d071b5 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 21:30:58 +0800 Subject: Fix tabs & contents margins --- Course/Detail/Classic/Content/Main.ui.qml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Course/Detail/Classic') diff --git a/Course/Detail/Classic/Content/Main.ui.qml b/Course/Detail/Classic/Content/Main.ui.qml index 06a1d13..801ed8f 100644 --- a/Course/Detail/Classic/Content/Main.ui.qml +++ b/Course/Detail/Classic/Content/Main.ui.qml @@ -36,19 +36,19 @@ ColumnLayout { ColumnLayout { anchors { left: parent.left - leftMargin: 25.6 right: parent.right - rightMargin: 25.6 } GridView { id: tabs interactive: false Layout.topMargin: 16 + Layout.leftMargin: 25.6 + Layout.rightMargin: 25.6 Layout.bottomMargin: 16 cellWidth: 105.016 cellHeight: 46 - implicitWidth: parent.width + implicitWidth: parent.width - 51.2 implicitHeight: Math.ceil(count / Math.floor(count / (cellWidth * count @@ -75,17 +75,18 @@ ColumnLayout { StackLayout { id: tabContents currentIndex: tabs.currentIndex - Layout.topMargin: 33.6 + Layout.topMargin: 25.6 Layout.leftMargin: 25.6 Layout.rightMargin: 25.6 Layout.bottomMargin: 25.6 - Layout.preferredWidth: parent.width + Layout.preferredWidth: parent.width - 51.2 Layout.preferredHeight: switch ( currentIndex) { case 0: return overview.height; case 2: - return instructor.height; + return instructor + .height; default: return 0; } -- cgit v1.2.3