Skip to content
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

[WinUI] Fix borders not showing bottom and right side #17016

Merged
merged 3 commits into from Aug 30, 2023
Merged

Conversation

emaf
Copy link
Contributor

@emaf emaf commented Aug 25, 2023

Description of Change

This seem to have regressed after the stroke thickness property values were fixed, making the path size bigger than the control itself and drawing the border outside of the bounds of the control.

The main fix is on the path size, where we subtract the stroke thickness to the control size now, because it should not exceed the control size. And then the transformation was updated to make sure the content is correctly adapted. The transformation on the path is enough and we don't need to add another one on the content panel.

Fix16667

Issues Fixed

Fixes #16667

This seem to have regressed after the stroke thickness property values were fixed, making the path size bigger than the control itself and drawing the border outside of the bounds of the control.

The main fix is on the path size, where we subtract the stroke thickness to the control size now, because it should not exceed the control size. And then the transformation was updated to make sure the content is correctly adapted. The transformation on the path is enough and we don't need to add another one on the content panel.

Fixes #16667
@emaf emaf requested a review from a team as a code owner August 25, 2023 23:23
@PureWeen PureWeen requested review from hartez, mattleibow, PureWeen and jstedfast and removed request for jsuarezruiz and rachelkang August 27, 2023 19:01
@rmarinho rmarinho requested review from jsuarezruiz and removed request for mattleibow and PureWeen August 28, 2023 15:11
jstedfast
jstedfast previously approved these changes Aug 28, 2023
@samhouts samhouts added this to the .NET 8 GA milestone Aug 28, 2023
Copy link
Member

@PureWeen PureWeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull the samples from this PR
#15856

And test the Border Resize Content part of the sample gallery.

@emaf
Copy link
Contributor Author

emaf commented Aug 30, 2023

Pull the samples from this PR #15856

And test the Border Resize Content part of the sample gallery.

Resizing problems are tracked by #17109

cc @jstedfast @rmarinho @PureWeen

@rmarinho rmarinho requested a review from PureWeen August 30, 2023 20:01
@rmarinho rmarinho dismissed PureWeen’s stale review August 30, 2023 20:01

Jeffrey is good with it :)

@rmarinho rmarinho enabled auto-merge (squash) August 30, 2023 20:01
@rmarinho rmarinho merged commit 1adaa76 into main Aug 30, 2023
38 checks passed
@rmarinho rmarinho deleted the dev/ema/border branch August 30, 2023 20:02
@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[regression/8.0.0-preview.7.8842] Border clips on the bottom and right
5 participants