From c196228c23cee41f01b1ef17a67bfab06c70b3cd 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: Wed, 16 Nov 2022 10:11:37 +0800 Subject: Default Home as Scroll View --- DefaultHome.ui.qml | 10 +++++++--- 1 file 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 } } -- cgit v1.2.3