-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix RTL in AbsoluteLayout #7309
Conversation
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
bool leftToRight = AbsoluteLayout.ShouldArrangeLeftToRight(); | ||
|
||
// Figure out where we're starting from (the left edge of the padded area, or the right edge) | ||
double xPosition = leftToRight ? padding.Left + bounds.Left : bounds.Right - padding.Right; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to reuse left
and right
here, since they seem to match?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
definitely, thanks for catching that!
var measuredSize = manager.Measure(double.PositiveInfinity, 100); | ||
manager.ArrangeChildren(new Rect(Point.Zero, measuredSize)); | ||
|
||
// We expect that the view hould be arranged on the right |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// We expect that the view hould be arranged on the right | |
// We expect that the view should be arranged on the right |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, thank you! 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the xPosition value if it's not needed. Otherwise, looks good!
Description of Change
Fix RTL in AbsoluteLayout. Now, setting RTL on AbsoluteLayout will actually right-align its children. Yay!
Thank you EZ for all the layout knowledge and help
Issues Fixed
Fixes #6540