diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-19 15:59:49 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-19 15:59:49 +0800 |
commit | 6bca4ee97ae87b12943f920b287d1251d702f839 (patch) | |
tree | dd8171bf78f6de6e19a9c57f04d6794a1603003c /Course/Detail/Classic/Content/Main.ui.qml | |
parent | 89833dabafe20bc9fbf78ffc05cebb57b000e001 (diff) |
Tab contents' height depends on active tab
Diffstat (limited to 'Course/Detail/Classic/Content/Main.ui.qml')
-rw-r--r-- | Course/Detail/Classic/Content/Main.ui.qml | 14 |
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 {} |