-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 crash with unbounded sizing for WrapLayout. #3330
Conversation
Also add some new stuff to the sample for easier manipulation.
Thanks marcpems for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌 |
Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WrapLayout/WrapLayout.bind
Outdated
Show resolved
Hide resolved
Not sure what the build failure is about... |
|
Fixed the Release compile issue |
|
||
_wrapScrollParent = control.FindChildByName("WrapScrollParent") as ScrollViewer; | ||
var wrapLayoutParent = _wrapScrollParent?.FindDescendant<ItemsRepeater>(); | ||
_wrapLayout = wrapLayoutParent.Layout as WrapLayout; |
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.
I hit an exception here, we should already have a reference to the repeater above, testing something out quick.
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.
It's crashing for me as too. I think @michael-hawker is taking a look. Let's see what seems to be the problem.
Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WrapLayout/WrapLayoutPage.xaml.cs
Outdated
Show resolved
Hide resolved
Microsoft.Toolkit.Uwp.UI.Controls.Layout/WrapLayout/WrapLayout.cs
Outdated
Show resolved
Hide resolved
Needed to use Visual helpers here, as apparently Logical ones work differently here in Release mode???
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.
🚀🚀🚀🚀
Also add some new stuff to the sample for easier manipulation.
Fixes #3327
#3327
PR Type
What kind of change does this PR introduce?
What is the current behavior?
WrapLayout throws when contained in a control with an infinite size in the axis opposite to the WrapLayout.
What is the new behavior?
It doesnt crash now. And there are some neat controls on the sample to help swap axis.
PR Checklist
Please check if your PR fulfills the following requirements:
Other information