Browse Source

Merge pull request #12613 from Gillibald/fixes/lineHeight

Allow setting a LineHeight that is smaller than the default
release/11.0.5-rc1
Benedikt Stebner 3 years ago
committed by Steven Kirk
parent
commit
124ad50e55
  1. 5
      src/Avalonia.Base/Media/TextFormatting/TextLineImpl.cs

5
src/Avalonia.Base/Media/TextFormatting/TextLineImpl.cs

@ -1282,10 +1282,7 @@ namespace Avalonia.Media.TextFormatting
if (!double.IsNaN(lineHeight) && !MathUtilities.IsZero(lineHeight))
{
if (lineHeight > height)
{
height = lineHeight;
}
height = lineHeight;
}
return new TextLineMetrics

Loading…
Cancel
Save