-
Notifications
You must be signed in to change notification settings - Fork 80
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
[GridSplitter] Fix #339: resize both items when they are fixed size to avoid the change overflowing to the irrelevant Star-sized item #342
[GridSplitter] Fix #339: resize both items when they are fixed size to avoid the change overflowing to the irrelevant Star-sized item #342
Conversation
Fixes CommunityToolkit#339 If the vector contains another item with Star sizing, it's not enough to just change current. The change will flow to the Star sized item and not to the sibling if the sibling is fixed-size. We need to explicitly apply the change to the sibling.
@dotnet-policy-service agree |
@abdes it appears you applied different XAML Styler settings than the for the file we have in the repo, ensure your plugin is configured to look upwards in the folder structure for settings files. I also don't think this behavior is correct. If the limit has been reached for the size a column should grow, no more movement should occur. Here we see the 1 & 2 columns being affected by the changes to the 3 & 4 now, i.e. the third column growing more as you continue to drag to the right and pushing the other two out of the way. Once the 4th column is the smallest, it should no longer update anything else. There is ambiguity in if the last column should be able to go beyond the size of the grid. I believe in WPF, it would extend the size of the grid itself to grow beyond the original bounds. |
Fixes CommunityToolkit#339 If the vector contains another item with Star sizing, it's not enough to just change current. The change will flow to the Star sized item and not to the sibling if the sibling is fixed-size. We need to explicitly apply the change to the sibling. Now also checks the constraints before allowing the resize.
Got it.
GridSplitter.339.fixed.mp4@michael-hawker please check the new implementation |
Can we get a reviewer to move this forward please? |
@Arlodotexe |
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.
Tested locally under Uwp, Wasdk and Wasm. Code looks good and it does fix the issue. Let's get this merged! 🎉
Fixes
Fixes #339
Please see #339 for a detailed description of the problem with video of the interaction.
PR Type
What kind of change does this PR introduce?
Bugfix
Code style update (formatting)
Sample app changes
What is the current behavior?
Please see #339 for a detailed description of the problem with video of the interaction.
What is the new behavior?
GridSplitter.339.fixed.mp4
PR Checklist
Please check if your PR fulfills the following requirements:
Other information