diff --git a/doric-Qt/example/app/main.qml b/doric-Qt/example/app/main.qml index 18d6a34f..43e9511a 100644 --- a/doric-Qt/example/app/main.qml +++ b/doric-Qt/example/app/main.qml @@ -43,7 +43,8 @@ ApplicationWindow { } MouseArea { - anchors.fill: parent + width: parent.width + height: parent.height onClicked: { navigatorPop() } @@ -66,25 +67,27 @@ ApplicationWindow { } Rectangle { + id: content Layout.fillWidth: true Layout.fillHeight: true StackView { id: stack objectName: "stackView" - anchors.fill: parent + anchors.fill: content initialItem: ScrollView { id: entry - anchors.fill: parent + width: content.width + height: content.height ScrollBar.horizontal.policy: ScrollBar.AlwaysOff ScrollBar.vertical.policy: ScrollBar.AlwaysOff ListView { id: list - width: parent.width + width: content.width model: 23 boundsBehavior: Flickable.StopAtBounds @@ -148,7 +151,7 @@ ApplicationWindow { } } } - width: parent.width + width: content.width height: 60 MouseArea { anchors.fill: parent