A FlexLayout
inside a FlexLayout
works fine, but another nested FlexLayout
disappears.
Here's some XAML attempting to reproduce a "holy grail" layout:
<FlexLayout Direction="Column">
<Label Text="Header" />
<FlexLayout FlexLayout.Grow="1">
<FlexLayout Direction="Column">
<Label Text="Nav #1" />
<Label Text="Nav #2" />
<Label Text="Nav #3" />
</FlexLayout>
<Label Text="Content"
FlexLayout.Grow="1" />
<Label Text="Aside" />
</FlexLayout>
<Label Text="Footer" />
</FlexLayout>
The FlexLayout
with the three Label
children should be visible.
But it's not there are all.
Complete solution at https://github.com/xamarin/private-samples/tree/master/FlexLayoutIssue
Just spend a while thinking I had a bug in my code because of this issue. Any update on when it will be addressed? Thanks.
Is this just a case of semantics with FlexLayout.Grow
? If you set :
<FlexLayout Direction="Column" FlexLayout.Grow="1">
<Label Text="Nav #1" />
<Label Text="Nav #2" />
<Label Text="Nav #3" />
</FlexLayout>
The labels appear.
Code comments in FlexLayout.cs that are probably relevant:
and:
Try force the HeighRequest value of the first FlexLayout.
This issue doesn't seem to have had any activity in a long time. We're working on prioritizing issues and resolving them as quickly as we can. To help us get through the list, we would appreciate an update from you to let us know if this is still affecting you on the latest version of Xamarin.Forms, since it's possible that we may have resolved this as part of another related or duplicate issue. If we don't see any new activity on this issue in the next 30 days, we'll evaluate whether this issue should be closed. Thank you!
Just tested it again and still a problem. Please don't close this issue.
Most helpful comment
Just spend a while thinking I had a bug in my code because of this issue. Any update on when it will be addressed? Thanks.