Browse Source

Fix percentages in VerticalAlign computed value

Michael Ragazzon 2 years ago
parent
commit
7c14c9872e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Core/ComputeProperty.cpp

+ 1 - 1
Source/Core/ComputeProperty.cpp

@@ -238,7 +238,7 @@ Style::VerticalAlign ComputeVerticalAlign(const Property* property, float line_h
 	}
 	else if (property->unit & Property::PERCENT)
 	{
-		return Style::VerticalAlign(property->Get<float>() * line_height);
+		return Style::VerticalAlign(property->Get<float>() * line_height * 0.01f);
 	}
 
 	RMLUI_ASSERT(property->unit & Property::KEYWORD);