Description[Extensions Toolbar] Protect against crazy bounds
Address two issues:
- The extensions toolbar can be bigger than the browser window.
- The user could, potentially, have so many extensions that the
overflow container makes the wrench menu expand ridiculously.
Address the former by automatically overflowing any actions
that won't fit on the main bar into the overflow menu (without
setting it as the preferred size, so resizing the window returns
to normal).
Address the latter by giving the overflow item a maximum height of
416 pixels (enough for around 104 overflowed actions), and make it
a scroll view on Views. Mac users will see it truncated. Note that
this will affect <0.0002% of users (but we want to avoid a completely
broken experience for anyone).
BUG=530303
BUG=58915
Committed: https://crrev.com/ede728b9fff930b95b40e434f6f0c31244ef8b05
Cr-Commit-Position: refs/heads/master@{#349504}
Patch Set 1 #
Total comments: 4
Patch Set 2 : #
Total comments: 24
Patch Set 3 : Peter's #
Total comments: 21
Patch Set 4 : #
Total comments: 12
Patch Set 5 : Final nits #Messages
Total messages: 18 (5 generated)
|