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
parent
commit
d241fa9516
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/Utils/BorderRenderHelper.cs

2
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

Loading…
Cancel
Save