Index: chrome/browser/ui/cocoa/intents/web_intent_picker_view_controller.mm |
diff --git a/chrome/browser/ui/cocoa/intents/web_intent_picker_view_controller.mm b/chrome/browser/ui/cocoa/intents/web_intent_picker_view_controller.mm |
index af95fb66c9aa762e8b59b7b932596f54212ad9aa..09d1aa6631b4a3f4d72d332f54cf3abcfb7664bb 100644 |
--- a/chrome/browser/ui/cocoa/intents/web_intent_picker_view_controller.mm |
+++ b/chrome/browser/ui/cocoa/intents/web_intent_picker_view_controller.mm |
@@ -146,7 +146,11 @@ |
NSRect bounds = NSInsetRect(innerFrame, |
-ConstrainedWindow::kHorizontalPadding, |
- -ConstrainedWindow::kVerticalPadding); |
+ 0); |
+ bounds.origin.y -= ConstrainedWindow::kClientTopPadding; |
+ bounds.size.height = NSHeight(innerFrame) + |
+ ConstrainedWindow::kClientTopPadding + |
+ ConstrainedWindow::kClientBottomPadding; |
[[viewController view] setFrame:bounds]; |
[viewController layoutSubviewsWithinFrame:innerFrame]; |
@@ -164,9 +168,14 @@ |
- (NSRect)minimumInnerFrame { |
NSRect bounds = NSMakeRect(0, 0, WebIntentPicker::kWindowMinWidth, |
WebIntentPicker::kWindowMinHeight); |
- return NSInsetRect(bounds, |
- ConstrainedWindow::kHorizontalPadding, |
- ConstrainedWindow::kVerticalPadding); |
+ bounds = NSInsetRect(bounds, |
+ ConstrainedWindow::kHorizontalPadding, |
+ 0); |
+ bounds.origin.y += ConstrainedWindow::kClientTopPadding; |
+ bounds.size.height = bounds.size.height - |
+ ConstrainedWindow::kClientTopPadding - |
+ ConstrainedWindow::kClientBottomPadding; |
+ return bounds; |
} |
- (NSViewController<WebIntentViewController>*)currentViewController { |