-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Android] Fix issues clipping content in Border #7467
Conversation
@@ -56,8 +56,8 @@ public double RadiusY | |||
/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/EllipseGeometry.xml" path="//Member[@MemberName='AppendPath']/Docs" /> | |||
public override void AppendPath(PathF path) | |||
{ | |||
var centerX = (float)RadiusX; | |||
var centerY = (float)RadiusY; | |||
var centerX = (float)Center.X; |
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.
😲
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.
This #7460 issue still remains in Android
Unzip the below Project
BorderClipImage.zip
Screenshots
See the clipping issues in Android
float w = (canvas.Width / density) - strokeThickness; | ||
float h = (canvas.Height / density) - strokeThickness; |
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.
Is this correct? strokeThickness
is now multiplied by density
but canvas.Width
/ canvas.Height
is divided by density
.
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.
We apply a Scale by density after this.
This error persists 6.0.400 (Service Release 1) |
This #7460 issue still remains in Android Unzip the below Project Screenshots See the clipping issues in Android |
Description of Change
Fix issues clipping content in Border on Android. This definitely didn't work before #6851 and after remove platform-specific density calculations from the cross-platfor layer here e50621c, the issue is back. This PR include changes to maintain the density stuff at platform level but fix the clipping issues.
Issues Fixed
Fixes #7448
Fixes #7460