commit | 80e8bbdecb9295112a678a50c00043fdb45a5307 | [log] [tgz] |
---|---|---|
author | Jay Harris <harrisjay@chromium.org> | Wed Feb 13 01:02:34 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Feb 13 01:02:34 2019 |
tree | 67ce725a30fa4dea90ca7a2d4a0ef503117efb88 | |
parent | bdd76190e54e6a0e11343dd19e4bf1d06956fa48 [diff] |
Fixes a resizing bug in the Custom Tab Bar Currently, the MinimumSize of the Toolbar is calculated based on the PreferredSize of its children. The CustomTabBarView/CustomTabBarTitleOriginView has a label for the url of the current site, which is forcing the MinimumSize of the Toolbar to be the length of the label. The Fix: - Set the elide behavior for the labels to be ELIDE_TAIL - Calculate the MinimumSize of the CustomTabBarTitleOriginView to be the width of 20 characters of the page title. - Explicitly calculate the preferred size for the CustomTabBar, based on its contents. Bug: 929086, 929600 Change-Id: Ifff8a3f94552e42cab45c42233b63e82b0212284 Reviewed-on: https://chromium-review.googlesource.com/c/1457801 Commit-Queue: Jay Harris <harrisjay@chromium.org> Reviewed-by: Trent Apted <tapted@chromium.org> Cr-Commit-Position: refs/heads/master@{#631473}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .