Skip to content

Use correct clip path method for RoundRectangle#16132

Closed
hartez wants to merge 2 commits into
mainfrom
fix-9129
Closed

Use correct clip path method for RoundRectangle#16132
hartez wants to merge 2 commits into
mainfrom
fix-9129

Conversation

@hartez
Copy link
Copy Markdown
Contributor

@hartez hartez commented Jul 12, 2023

Description of Change

RoundRectangle as a border shape needs to use the InnerPathForBounds() method for clipping.

Making this a draft, it needs device tests.

Issues Fixed

Fixes #9129

@jsuarezruiz
Copy link
Copy Markdown
Contributor

Added the device tests from #14403

@jsuarezruiz jsuarezruiz added area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing t/bug Something isn't working area-controls-border Border labels Jul 18, 2023
@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jul 18, 2023
@hartez hartez marked this pull request as ready for review July 25, 2023 16:15
@samhouts samhouts added this to the .NET 8 GA milestone Jul 26, 2023
@rmarinho rmarinho requested review from Redth and jsuarezruiz August 4, 2023 18:12

PathF? clipPath;

if (clipGeometry is IRoundRectangle roundedRectangle)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why just the round rects? What makes this special? Will we soon see other types being added?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No idea, not my design. I was just making it work the way it worked on the other two platforms.

@samhouts samhouts requested review from a team, StephaneDelcroix, mattleibow and rachelkang and removed request for a team, Redth, StephaneDelcroix, jsuarezruiz and mattleibow August 10, 2023 18:32
@hartez
Copy link
Copy Markdown
Contributor Author

hartez commented Aug 15, 2023

Pretty sure we no longer need this, the target issue has been closed by another PR.

@hartez hartez closed this Aug 15, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 8, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-border Border area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing t/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clipping an Image with a Border has a gap on Windows

5 participants