summaryrefslogtreecommitdiff
path: root/Course/Detail/Classic
diff options
context:
space:
mode:
Diffstat (limited to 'Course/Detail/Classic')
-rw-r--r--Course/Detail/Classic/Content/Main.ui.qml14
1 files changed, 13 insertions, 1 deletions
diff --git a/Course/Detail/Classic/Content/Main.ui.qml b/Course/Detail/Classic/Content/Main.ui.qml
index d7fe09e..a499b52 100644
--- a/Course/Detail/Classic/Content/Main.ui.qml
+++ b/Course/Detail/Classic/Content/Main.ui.qml
@@ -79,8 +79,18 @@ ColumnLayout {
Layout.leftMargin: 25.6
Layout.rightMargin: 25.6
Layout.bottomMargin: 25.6
+ Layout.preferredHeight: switch (
+ currentIndex) {
+ case 0:
+ return overview.height;
+ case 2:
+ return instructor.height;
+ default:
+ return 0;
+ }
ColumnLayout {
+ id: overview
Label {
text: qsTr("Course Description")
@@ -109,7 +119,9 @@ ColumnLayout {
Item {}
- MainTabContents.Instructor {}
+ MainTabContents.Instructor {
+ id: instructor
+ }
Item {}