fix layout error

This commit is contained in:
王劲鹏 2021-03-01 20:15:28 +08:00 committed by osborn
parent e35f0a79c4
commit dd534a8d4e
3 changed files with 9 additions and 1 deletions

View File

@ -3,4 +3,8 @@ import QtQuick.Controls 2.5
Flex {
flexDirection: "row"
flexWrap: "wrap"
justifyContent: "flexStart"
alignItems: "flexStart"
alignContent: "stretch"
}

View File

@ -3,5 +3,9 @@ import QtQuick.Controls 2.5
Flex {
flexDirection: "column"
flexWrap: "wrap"
justifyContent: "flexStart"
alignItems: "flexStart"
alignContent: "stretch"
}

View File

@ -3,7 +3,7 @@ import { Group, Panel, text, gravity, Color, LayoutSpec, vlayout, hlayout, scrol
@Entry
class LayoutDemo extends Panel {
build(rootView: Group) {
hlayout([
vlayout([
stack([], {
width: 100,
height: 100,