Browse Source

Make sure underline is drawn within bounds.

pull/6784/head
Steven Kirk 4 years ago
parent
commit
b663afe06b
  1. 2
      src/Avalonia.Controls/Primitives/AccessText.cs

2
src/Avalonia.Controls/Primitives/AccessText.cs

@ -68,7 +68,7 @@ namespace Avalonia.Controls.Primitives
if (underscore != -1 && ShowAccessKey)
{
var rect = TextLayout.HitTestTextPosition(underscore);
var offset = new Vector(0, -0.5);
var offset = new Vector(0, -1.5);
context.DrawLine(
new Pen(Foreground, 1),
rect.BottomLeft + offset,

Loading…
Cancel
Save