| Index: Source/core/layout/LayoutMenuList.cpp
|
| diff --git a/Source/core/layout/LayoutMenuList.cpp b/Source/core/layout/LayoutMenuList.cpp
|
| index c499159d94bc2c1978e6a8fe3a9bd2e243919e8b..9570a33c92e33a22b43434abc472c281ff1c3f6d 100644
|
| --- a/Source/core/layout/LayoutMenuList.cpp
|
| +++ b/Source/core/layout/LayoutMenuList.cpp
|
| @@ -104,6 +104,8 @@ void LayoutMenuList::adjustInnerStyle()
|
| ComputedStyle& innerStyle = m_innerBlock->mutableStyleRef();
|
| innerStyle.setFlexGrow(1);
|
| innerStyle.setFlexShrink(1);
|
| + // min-width: 0; is needed for correct shrinking.
|
| + innerStyle.setMinWidth(Length(0, Fixed));
|
| // Use margin:auto instead of align-items:center to get safe centering, i.e.
|
| // when the content overflows, treat it the same as align-items: flex-start.
|
| // But we only do that for the cases where html.css would otherwise use center.
|
|
|