Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

[Bug] Controls don't layout properly horizontally #76

Open
davidortinau opened this issue Oct 14, 2021 · 1 comment
Open

[Bug] Controls don't layout properly horizontally #76

davidortinau opened this issue Oct 14, 2021 · 1 comment
Labels
bug Something isn't working high It doesn't work at or has a big impact.

Comments

@davidortinau
Copy link

davidortinau commented Oct 14, 2021

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>

image

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>

image

Build 9.217
Fluent

@jsuarezruiz jsuarezruiz added the bug Something isn't working label Oct 15, 2021
@jsuarezruiz jsuarezruiz added the high It doesn't work at or has a big impact. label Jan 21, 2022
@RedChops
Copy link

RedChops commented May 3, 2022

I was able to work around this using Grid instead of StackLayout. Different layout objectives, but it did lay out horizontally properly, fwiw

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working high It doesn't work at or has a big impact.
Projects
None yet
Development

No branches or pull requests

3 participants