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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_window_controller.mm

Issue 2063823007: [Material][Mac] Fixed tabstrip overlap issue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/tabs/tab_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/tabs/tab_window_controller.mm b/chrome/browser/ui/cocoa/tabs/tab_window_controller.mm
index dba85d4f98f88218c49eed4eaccb512a5708c7ac..3f6e67d13334f4cbbda03034a9c20faea796a761 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_window_controller.mm
+++ b/chrome/browser/ui/cocoa/tabs/tab_window_controller.mm
@@ -182,12 +182,15 @@
// Return the original window's tab strip view and content view to their
// places. The TabStripView always needs to be in front of the window's
// content view and therefore it should always be added after the content
- // view is set.
+ // view is set. It needs to be positioned at the bottom of the view
+ // hierarchy to ensure that it does not overlap the avatar button icon.
[[window contentView] addSubview:originalContentView_
positioned:NSWindowBelow
relativeTo:nil];
originalContentView_.frame = [[window contentView] bounds];
- [[window contentView] addSubview:[self tabStripView]];
+ [[window contentView] addSubview:[self tabStripView]
+ positioned:NSWindowBelow
+ relativeTo:nil];
[[self tabStripView] setInATabDraggingOverlayWindow:NO];
[[window contentView] updateTrackingAreas];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698