From 78629497aa49c986e16944a6118b211a1aa29d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Tue, 2 Mar 2021 10:13:16 +0800 Subject: [PATCH] change item to rectangle --- doric-Qt/doric/resources/Flex.qml | 2 +- doric-demo/src/SimpleDemo.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doric-Qt/doric/resources/Flex.qml b/doric-Qt/doric/resources/Flex.qml index a9ea9165..409ff709 100644 --- a/doric-Qt/doric/resources/Flex.qml +++ b/doric-Qt/doric/resources/Flex.qml @@ -2,7 +2,7 @@ import QtQuick 2.12 import QtQuick.Layouts 1.15 import pub.doric.widget 1.0 -Item { +Rectangle { id: flex property int minHeight: 0 diff --git a/doric-demo/src/SimpleDemo.ts b/doric-demo/src/SimpleDemo.ts index a14eb15e..3826614d 100644 --- a/doric-demo/src/SimpleDemo.ts +++ b/doric-demo/src/SimpleDemo.ts @@ -65,7 +65,7 @@ class LayoutDemo extends Panel { height: 300, }) ], { - width: 300, + width: 400, height: 300, backgroundColor: Color.BLACK }).in(rootView)