Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WPF] StackLayout VerticalOptions = LayoutOptions.End is not working #2394

Closed
flyingxu opened this issue Apr 7, 2018 · 1 comment · Fixed by #2451
Closed

[WPF] StackLayout VerticalOptions = LayoutOptions.End is not working #2394

flyingxu opened this issue Apr 7, 2018 · 1 comment · Fixed by #2451

Comments

@flyingxu
Copy link

flyingxu commented Apr 7, 2018

Bug report best practices: https://github.com/xamarin/Xamarin.Forms/wiki/Submitting-Issues

Description

In StackLayout, VerticalOptions = LayoutOptions.End is not working

Steps to Reproduce

  1. Edit Xamarin.Forms.Controls/GalleryPages/StackLayoutGallery.cs as below:
    var stack = new StackLayout { VerticalOptions = LayoutOptions.End};

change to LayoutOptions.End

Button b1 = new Button { Text = "Boring", HeightRequest = 100, MinimumHeightRequest = 50 };

HeightRequest is changed to 100 (make it shorter)

Button b4 = new Button { Text = "Meh", HeightRequest = 100, MinimumHeightRequest = 50 };

again HeightRequest is changed to 100 (make it shorter)
2. Run the project of Xamarin.Forms.ControlGallery.WPF, then select StackLayout Gallery - Legacy
3. Check the layout of the StackLayout

Expected Behavior

Buttons should be bottom-aligned

Actual Behavior

Buttons are top-aligned

Basic Information

  • Version with issue: 3.0.Pre3
  • Platform Target Frameworks:
    • WPF: 3.0.pre3

Screenshots

capture

@pauldipietro pauldipietro added this to New in Triage Apr 7, 2018
@mohachouch
Copy link
Contributor

I started to investigate this issue.

I think I have found the error (see screenshot)

I will continue to validate this solution and I will make a pull request in the next days.

Thanks :)

image

@rmarinho rmarinho moved this from New to Ready For Work in Triage Apr 12, 2018
Triage automation moved this from Ready For Work to Closed Apr 13, 2018
rmarinho added a commit that referenced this issue Apr 13, 2018
[WPF] Fix bug : StackLayout VerticalOptions = LayoutOptions.End is not working
@samhouts samhouts added this to Done in v3.1.0 Apr 24, 2018
@samhouts samhouts removed this from Closed in Triage Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v3.1.0
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants