Browse Source

Fix shrink-to-fit width in cases with 'box-sizing: border-box'

Michael Ragazzon 2 years ago
parent
commit
2ec97da05e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Core/Layout/BlockContainer.cpp

+ 1 - 1
Source/Core/Layout/BlockContainer.cpp

@@ -362,7 +362,7 @@ float BlockContainer::GetShrinkToFitWidth() const
 	if (computed.width().type == Style::Width::Length)
 	{
 		// We have a definite width, so use that size.
-		content_width = computed.width().value;
+		content_width = box.GetSize().x;
 	}
 	else
 	{