• pkasting@chromium.org's avatar
    Clip tabs in overflow mode. · e8225fad
    pkasting@chromium.org authored
    The tabstrip now tries to ensure that if tabs would encroach on the New Tab
    button area or be clipped by the edge of the strip, they're made invisible
    instead.  This prevents glitchy-looking overflow, modulo some existing bugs (on
    file) where the strip doesn't recalculate widths correctly.
    
    This also hides the tab next to the New Tab button if it can be shown when not
    selected, but might be hidden when it (or a prior tab) is selected.  This
    prevents having this tab toggle in and out as the active tab changes.
    
    BUG=62510
    TEST=Spawn lots of tabs and shrink the window to a narrow width.  Once the tabs hit their min size they should start hiding at the right edge instead of drawing atop the New Tab button.
    
    Review URL: https://codereview.chromium.org/339923005
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278028 0039d316-1c4b-4281-b951-d872f2087c98
    e8225fad
tab_strip_unittest.cc 23.4 KB