-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.10.0
-
None
I noticed that when I have an Item that uses Layout.fillHeight: true inside an FlexboxLayout with direction: FlexboxLayout.Column the item does not align itself as set via alignItems/alignContent, instead always defaulting to Start.
Below is a sample code and the resulting Image.
FlexboxLayout { anchors.fill: parent direction: FlexboxLayout.Column alignItems: FlexboxLayout.AlignCenter alignContent: FlexboxLayout.AlignCenter Rectangle { Layout.preferredHeight: 100 Layout.preferredWidth: 100 color: "red" } Rectangle { Layout.fillHeight: true Layout.preferredWidth: 100 color: "green" FlexboxLayout.alignSelf: FlexboxLayout.AlignEnd } }