Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Issue 5703007: Mac: Correctly clip tab title... (Closed)

Created:
10 years ago by Leib
Modified:
9 years, 7 months ago
Reviewers:
sail, viettrungluu
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr., Nico
Visibility:
Public.

Description

Mac: 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 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -33 lines) Patch
M chrome/browser/ui/cocoa/tab_controller.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/tab_controller.mm View 1 4 chunks +25 lines, -32 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_controller_unittest.mm View 1 2 chunks +65 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
sail
10 years ago (2010-12-13 23:54:30 UTC) #1
sail
Updating reviewers list.
10 years ago (2010-12-14 00:01:09 UTC) #2
viettrungluu
http://codereview.chromium.org/5703007/diff/1/chrome/browser/ui/cocoa/tab_controller.h File chrome/browser/ui/cocoa/tab_controller.h (right): http://codereview.chromium.org/5703007/diff/1/chrome/browser/ui/cocoa/tab_controller.h#newcode110 chrome/browser/ui/cocoa/tab_controller.h:110: - (NSTextField*)titleView; Maybe we should just use |@property|s for ...
10 years ago (2010-12-14 00:19:50 UTC) #3
sail
Addressed review comments. http://codereview.chromium.org/5703007/diff/1/chrome/browser/ui/cocoa/tab_controller.h File chrome/browser/ui/cocoa/tab_controller.h (right): http://codereview.chromium.org/5703007/diff/1/chrome/browser/ui/cocoa/tab_controller.h#newcode110 chrome/browser/ui/cocoa/tab_controller.h:110: - (NSTextField*)titleView; On 2010/12/14 00:19:50, viettrungluu ...
10 years ago (2010-12-14 01:59:53 UTC) #4
viettrungluu
10 years ago (2010-12-14 17:47:13 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698