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

Unified Diff: chrome/browser/ui/cocoa/framed_browser_window.mm

Issue 2412903003: [mac] Fixed window buttons positioning on Sierra. (Closed)
Patch Set: Fixed compilation Created 4 years, 2 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 | « base/mac/sdk_forward_declarations.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/framed_browser_window.mm
diff --git a/chrome/browser/ui/cocoa/framed_browser_window.mm b/chrome/browser/ui/cocoa/framed_browser_window.mm
index 9daf43125cdeca54da06f1ff72b58a9c421afa44..2bd1cf99cc4baa9e22f5aacc6f1023b65f500a18 100644
--- a/chrome/browser/ui/cocoa/framed_browser_window.mm
+++ b/chrome/browser/ui/cocoa/framed_browser_window.mm
@@ -40,6 +40,7 @@
MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_11
@interface NSObject (NSLayoutConstraint)
- (NSLayoutConstraint*)constraintEqualToAnchor:(id)anchor constant:(CGFloat)c;
+- (NSLayoutConstraint*)constraintEqualToAnchor:(id)anchor;
@end
#endif
@@ -285,6 +286,10 @@ const CGFloat kWindowGradientHeight = 24.0;
[[leadingSourceAnchorDuck constraintEqualToAnchor:leadingTargetAnchor
constant:leadingOffset]
setActive:YES];
+
+ [[[button bottomAnchor]
+ constraintEqualToAnchor:[[button superview] bottomAnchor]]
+ setActive:YES];
}
- (void)adjustCloseButton:(NSNotification*)notification {
« no previous file with comments | « base/mac/sdk_forward_declarations.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698