Repository navigation
Let the resize border win over the caption buttons on the side edges - #5477
Merged
Gabriel Dufresne (GabrielDuf) merged 2 commits intoOct 6, 2026
Merged
Conversation
4 tasks done
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The focused Windows-only change correctly preserves top-edge caption behavior while prioritizing side and corner resizing.
Review effort: Balanced
Findings: None
What changed in this PR
Improves Windows custom title-bar resizing by prioritizing resize borders over caption buttons.
Changes:
- Insets caption buttons from the resize border.
- Prioritizes side and corner resize hit tests while preserving top-edge Snap Layout behavior.
| File | Description |
|---|---|
src/UniGetUI.Avalonia/Views/MainWindow.axaml.cs |
Updates caption-button layout and Windows non-client hit testing. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
🤖 Pull request was approved automatically: the AI review is complete and all its review threads are resolved. 🎉
Integration Details
{
"deliveryId": "083ee520-c19a-11f1-818e-6d8b35e9a7f2",
"headSha": "86934b3bcbfad39d80de58218350621b7677adec",
"reviewer": "copilot-pull-request-reviewer[bot]"
}
Gabriel Dufresne (GabrielDuf)
deleted the
fix/5471-resize-top-right-corner
branch
October 6, 2026 17:03
This was referenced Oct 20, 2026
3 of 4 tasks
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.
This pull request introduces an improvement to the window resize behavior in the
MainWindow.axaml.csfile. Specifically, it adds logic to handle hit-testing for window borders, which helps support resizing from the edges.Window border hit-testing enhancement:
HitTestResizeBorderduring theWM_NCHITTESTmessage handling. If the result indicates a border edge (other thanHTNOWHEREorHTTOP), the message is handled and the appropriate value is returned, enabling proper edge-based resizing.