fix layout error
This commit is contained in:
parent
e35f0a79c4
commit
dd534a8d4e
@ -3,4 +3,8 @@ import QtQuick.Controls 2.5
|
|||||||
|
|
||||||
Flex {
|
Flex {
|
||||||
flexDirection: "row"
|
flexDirection: "row"
|
||||||
|
flexWrap: "wrap"
|
||||||
|
justifyContent: "flexStart"
|
||||||
|
alignItems: "flexStart"
|
||||||
|
alignContent: "stretch"
|
||||||
}
|
}
|
||||||
|
@ -3,5 +3,9 @@ import QtQuick.Controls 2.5
|
|||||||
|
|
||||||
Flex {
|
Flex {
|
||||||
flexDirection: "column"
|
flexDirection: "column"
|
||||||
|
flexWrap: "wrap"
|
||||||
|
justifyContent: "flexStart"
|
||||||
|
alignItems: "flexStart"
|
||||||
|
alignContent: "stretch"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import { Group, Panel, text, gravity, Color, LayoutSpec, vlayout, hlayout, scrol
|
|||||||
@Entry
|
@Entry
|
||||||
class LayoutDemo extends Panel {
|
class LayoutDemo extends Panel {
|
||||||
build(rootView: Group) {
|
build(rootView: Group) {
|
||||||
hlayout([
|
vlayout([
|
||||||
stack([], {
|
stack([], {
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 100,
|
height: 100,
|
||||||
|
Reference in New Issue
Block a user