Browse Source
Merge pull request #4525 from Gillibald/fixes/RoundedCorners
Fix #4521
fixes/caret-index-lost-when-selection-cleared
Benedikt Stebner
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Controls/Utils/BorderRenderHelper.cs
|
|
|
@ -141,7 +141,7 @@ namespace Avalonia.Controls.Utils |
|
|
|
var radiusY = keypoints.RightTop.Y - boundRect.TopRight.Y; |
|
|
|
if (radiusX != 0 || radiusY != 0) |
|
|
|
{ |
|
|
|
context.ArcTo(keypoints.RightTop, new Size(radiusY, radiusY), 0, false, SweepDirection.Clockwise); |
|
|
|
context.ArcTo(keypoints.RightTop, new Size(radiusX, radiusY), 0, false, SweepDirection.Clockwise); |
|
|
|
} |
|
|
|
|
|
|
|
// Right
|
|
|
|
|