DescriptionMac: Correctly clip tab title
When lots of tabs were created tab titles would sometimes overflow onto the close buttons or onto other tabs.
I think this is a problem with NSView's autoresize code. It doesn't handle the case where a view has been resized to 0 width.
To fix this I'm changing the tab layout code not to depend on NSView's autoresize behavior. The old code would let NSView resize the title view then grow or shrink the title as needed. The new code always sets the title view's frame a specific distance from the super frame.
BUG=32268
TEST=Opened lots of tabs and resized the browser window. Verified that the title never overlapped the close button. Added a new unit test to verify the layout of the title view.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69342
Patch Set 1 #
Total comments: 18
Patch Set 2 : '' #
Messages
Total messages: 5 (0 generated)
|