-
Notifications
You must be signed in to change notification settings - Fork 1.9k
FlexLayout inside StackLayout does not adjust height #11708
Copy link
Copy link
Closed
Labels
area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterfixed-in-7.0.100fixed-in-7.0.101fixed-in-7.0.81Look for this fix in 7.0.81!Look for this fix in 7.0.81!fixed-in-8.0.0-preview.1.7762Look for this fix in 8.0.0-preview.1.7762!Look for this fix in 8.0.0-preview.1.7762!layout-flexFlexLayout issuesFlexLayout issueslayout-stackplatform/androidt/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
Using a FlexLayout inside a StackLayout does not adjust the height of the FlexLayout.
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="BugTestFlexlayout.MainPage">
<StackLayout Orientation="Vertical">
<Label Text="Hallo1"></Label>
<FlexLayout>
<Label Text="Hallo2"></Label>
<Label Text="Hallo3"></Label>
</FlexLayout>
<Label Text="Hallo4"></Label>
</StackLayout>
</ContentPage>
On my Android smartphone this looks like this:

The Labels for "Hallo2" and "Hallo3" are not visible.
Steps to Reproduce
- Create a new MAUI App
- Use the given XAML above
- Run the app on an Android phone
Link to public reproduction project repository
https://github.com/sschoeb/maui-flexlayout-issue
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 13
Did you find any workaround?
No - FlexLayout is not usable inside a StackLayout
Relevant log output
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterfixed-in-7.0.100fixed-in-7.0.101fixed-in-7.0.81Look for this fix in 7.0.81!Look for this fix in 7.0.81!fixed-in-8.0.0-preview.1.7762Look for this fix in 8.0.0-preview.1.7762!Look for this fix in 8.0.0-preview.1.7762!layout-flexFlexLayout issuesFlexLayout issueslayout-stackplatform/androidt/bugSomething isn't workingSomething isn't working