Index: Source/core/rendering/RenderFlexibleBox.cpp |
diff --git a/Source/core/rendering/RenderFlexibleBox.cpp b/Source/core/rendering/RenderFlexibleBox.cpp |
index 62dfee372307b28119fa28e0ee64d50dc7fef3a5..d3cd3dd06d3d912700aec19a3503d598dfd4a6b0 100644 |
--- a/Source/core/rendering/RenderFlexibleBox.cpp |
+++ b/Source/core/rendering/RenderFlexibleBox.cpp |
@@ -314,9 +314,10 @@ void RenderFlexibleBox::repositionLogicalHeightDependentFlexItems(Vector<LineCon |
LayoutUnit crossAxisStartEdge = lineContexts.isEmpty() ? LayoutUnit() : lineContexts[0].crossAxisOffset; |
alignFlexLines(lineContexts); |
- // If we have a single line flexbox, the line height is all the available space. |
+ // If we have a single line flexbox or a multiline line flexbox with only one flex line, |
+ // the line height is all the available space. |
// For flex-direction: row, this means we need to use the height, so we do this after calling updateLogicalHeight. |
- if (!isMultiline() && lineContexts.size() == 1) |
+ if (lineContexts.size() == 1) |
lineContexts[0].crossAxisExtent = crossAxisContentExtent(); |
alignChildren(lineContexts); |