Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #15519 +/- ##
=============================================
Coverage 41.23472% 41.23472%
=============================================
Files 247 247
Lines 9897 9897
Branches 1049 1049
=============================================
Hits 4081 4081
Misses 5621 5621
Partials 195 195
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Widen the comparison that clamps SplitterDistance to the available space.
Customer Impact
Assigning int.MaxValue can overflow the calculation that adds splitter thickness. The out-of-range distance then gets stored and gives Panel2 a negative dimension. The guard now clamps to the existing maximum.
Regression?
Introduction point unknown. Reproduced on .NET 10 and the upstream baseline.
Risk
Only the comparison arithmetic changes. The test covers horizontal and vertical orientation and checks the resulting bounds.
Test methodology
2 regression cases failed on the baseline. 2 related tests passed with 0 skipped after the fix. The test project built with 0 warnings and 0 errors. Windows validation.
Test environment(s)
Windows x64 Debug with the repository .NET 12 SDK.
Developed with AI assistance and independently reviewed by an AI agent.
Microsoft Reviewers: Open in CodeFlow