diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-19 21:30:58 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-19 21:30:58 +0800 |
commit | a4ce0b667ca2ef1ce8925496f1b06203c6d071b5 (patch) | |
tree | 82f00859b4b0bd4caee9fd1148f047327a3d8075 /Course/Detail/Classic | |
parent | 9b4105149583c612aac4ee33ce7079ddb2b1dd3e (diff) |
Fix tabs & contents margins
Diffstat (limited to 'Course/Detail/Classic')
-rw-r--r-- | Course/Detail/Classic/Content/Main.ui.qml | 13 |
1 files changed, 7 insertions, 6 deletions
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; } |