瀏覽代碼

Fixed height in the same manner as the width fix for elements with precalculated height, like form elements.

Christopher S. Case 14 年之前
父節點
當前提交
ccc0fb784a
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      Source/Core/LayoutEngine.cpp

+ 5 - 1
Source/Core/LayoutEngine.cpp

@@ -584,8 +584,12 @@ void LayoutEngine::BuildBoxHeight(Box& box, Element* element, float containing_b
 
 	// Determine if the element has an automatic height, and if not calculate it.
 	bool height_auto;
-	if (content_area.y >= 0)
+	int display_property = element->GetProperty< int >(DISPLAY);
+
+	if (display_property == DISPLAY_INLINE_BLOCK)
+	{
 		height_auto = false;
+	}
 	else
 	{
 		const Property* height_property = element->GetProperty(HEIGHT);