|
|
@@ -1325,12 +1325,12 @@ namespace Avalonia.Media.TextFormatting
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //The width of overhanging pixels ath the bottom
|
|
|
+ //The width of overhanging pixels at the bottom
|
|
|
var overhangAfter = Math.Max(0, bounds.Bottom - height);
|
|
|
//The width of overhanging pixels at the origin
|
|
|
- var overhangLeading = bounds.Left;
|
|
|
+ var overhangLeading = Math.Abs(Math.Min(bounds.Left, 0));
|
|
|
//The width of overhanging pixels at the end
|
|
|
- var overhangTrailing = Math.Max(0, bounds.Width - widthIncludingWhitespace);
|
|
|
+ var overhangTrailing = Math.Max(0, bounds.Right - widthIncludingWhitespace);
|
|
|
var hasOverflowed = width > _paragraphWidth;
|
|
|
|
|
|
if (!double.IsNaN(lineHeight) && !MathUtilities.IsZero(lineHeight))
|