Skip to content

Commit 135db3e

Browse files
committed
Fix incorrect em unit calculation in CssBoxProperties
1 parent c4257c4 commit 135db3e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Source/HtmlRenderer/Core/Dom/CssBoxProperties.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,14 +1432,14 @@ public double ActualBorderSpacingVertical
14321432
/// <returns></returns>
14331433
public double GetEmHeight()
14341434
{
1435-
return ActualFont.Height;
1435+
return ActualFont.Size * 96d / 72d;
14361436
}
14371437

1438-
/// <summary>
1439-
/// Ensures that the specified length is converted to pixels if necessary
1440-
/// </summary>
1441-
/// <param name="length"></param>
1442-
protected string NoEms(string length)
1438+
/// <summary>
1439+
/// Ensures that the specified length is converted to pixels if necessary
1440+
/// </summary>
1441+
/// <param name="length"></param>
1442+
protected string NoEms(string length)
14431443
{
14441444
var len = new CssLength(length);
14451445
if (len.Unit == CssUnit.Ems)

0 commit comments

Comments
 (0)