diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-11-16 10:11:37 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-11-16 10:11:37 +0800 |
commit | c196228c23cee41f01b1ef17a67bfab06c70b3cd (patch) | |
tree | 9acade49e41e52da0990818691ed08a19f299f6a | |
parent | 125ccf21f308a532b5fc4f4e7b2f9124efd84638 (diff) |
Default Home as Scroll View
-rw-r--r-- | DefaultHome.ui.qml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/DefaultHome.ui.qml b/DefaultHome.ui.qml index aa25e70..9cf4f08 100644 --- a/DefaultHome.ui.qml +++ b/DefaultHome.ui.qml @@ -1,8 +1,10 @@ import QtQuick 2.15 import QtQuick.Controls 2.15 -Item { +ScrollView { property alias popularCourseTabsContent: popularCourseTabsContent + contentWidth: counter.width + contentHeight: counter.height + popularCourseTabsContent.height GridView { id: counter @@ -63,12 +65,13 @@ Item { cellWidth: width < 576 ? width : width < 768 ? width / 2 : width < 992 ? width / 3 : width / 4 cellHeight: cellWidth * 1.3 + + height: 100 anchors { top: parent.top left: parent.left right: parent.right } - height: 100 } GridView { @@ -79,11 +82,12 @@ Item { : width < 992 ? width / 3 : width / 4 cellHeight: cellWidth * 1.3 + height: width < 576 ? cellHeight : width < 768 ? cellHeight * 2 + : width < 992 ? cellHeight * 3 : cellHeight * 4 anchors { left: parent.left right: parent.right bottom: parent.bottom } - height: parent.height - 100 } } |