Microsoft.Maui.Graphics.Controls
Microsoft.Maui.Graphics.Controls copied to clipboard
[Bug] Controls don't layout properly horizontally
trafficstars
I've used both HorizontalStackLayout and StackLayout with horizontal orientation, and in both cases the buttons are offscreen left.
<StackLayout Background="Red" Orientation="Horizontal">
<Button Text="Button"/>
<Button Text="Button" IsEnabled="False"/>
</StackLayout>
Turning everything vertical lays out ok.
<Label Text="Primary filled"/>
<StackLayout Orientation="Vertical">
<Button Text="Button"/>
<Button Text="Button" IsEnabled="False"/>
</StackLayout>
<VerticalStackLayout>
<Button ImageSource="{StaticResource CircleIcon}" Text="Button"/>
<Button ImageSource="{StaticResource CircleIcon}" Text="Button" IsEnabled="False"/>
</VerticalStackLayout>
<VerticalStackLayout>
<Button FontFamily="FontAwesome"
Text="{x:Static app:IconFont.Archway}"/>
<Button FontFamily="FontAwesome"
Text="{x:Static app:IconFont.Archway}"
IsEnabled="False"/>
</VerticalStackLayout>
Build 9.217 Fluent
I was able to work around this using Grid instead of StackLayout. Different layout objectives, but it did lay out horizontally properly, fwiw