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

Unified Diff: chrome/browser/ui/cocoa/permission_bubble/permission_bubble_controller.mm

Issue 2833463003: Permissions/Mac: Fix missing right padding for Cocoa permission prompt bubbles. (Closed)
Patch Set: Created 3 years, 8 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/permission_bubble/permission_bubble_controller.mm
diff --git a/chrome/browser/ui/cocoa/permission_bubble/permission_bubble_controller.mm b/chrome/browser/ui/cocoa/permission_bubble/permission_bubble_controller.mm
index 11932109087d82ef940be27019c5b1c12cd82fbf..339f2ebe013e9950b5a451b5260c8562807a7b53 100644
--- a/chrome/browser/ui/cocoa/permission_bubble/permission_bubble_controller.mm
+++ b/chrome/browser/ui/cocoa/permission_bubble/permission_bubble_controller.mm
@@ -409,8 +409,10 @@ const NSInteger kFullscreenLeftOffset = 40;
NSWidth([closeButton frame]) +
chrome_style::kCloseButtonPadding;
- bubbleFrame.size.width = std::max(
- NSWidth(bubbleFrame), std::max(titleRowWidth, maxPermissionLineWidth));
+ bubbleFrame.size.width =
+ std::max(NSWidth(bubbleFrame),
+ std::max(titleRowWidth, maxPermissionLineWidth)) +
+ kHorizontalPadding;
// Now that the bubble's dimensions have been set, lay out the buttons and
// menus.
« 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