Fix extension icon container resizing getting stuck at 0
In BrowserActionsContainer::GetFlexRule() the width is clamped between a min width and a max width. If the min width is > max width it should still win. This CL ensures this behaviour in the boundary condition and fixes a bug where resizing the extension icons in the toolbar to 0 would not be able to be reversed. Before: https://bugs.chromium.org/p/chromium/issues/attachment?aid=439709&signed_aid=C2ncXrrBkAc-NH_GjVaSmg==&inline=1 After: https://bugs.chromium.org/p/chromium/issues/attachment?aid=439710&signed_aid=9D3JktJW8DssKm2eMOvAYg==&inline=1 Bug: 1066337 Change-Id: I6602673fdefb84ee0a3c2b1eaa728238d3175573 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2128039 Commit-Queue: Alan Cutter <alancutter@chromium.org> Reviewed-by:Peter Kasting <pkasting@chromium.org> Auto-Submit: Alan Cutter <alancutter@chromium.org> Cr-Commit-Position: refs/heads/master@{#754806}
Showing
Please register or sign in to comment