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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm

Issue 2927193002: Omnibox UI: Create right-margin on Cocoa dropdown (Closed)
Patch Set: merge Created 3 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 | « chrome/browser/ui/cocoa/omnibox/omnibox_popup_matrix.mm ('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/omnibox/omnibox_popup_view_mac.mm
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm
index 53ce50bef7dba4c0c1d80481d2537f47e90129c9..d7c44a83710886333ea99ce0da5c4b4d216be938 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm
@@ -273,6 +273,7 @@ void OmniboxPopupViewMac::PositionPopup(const CGFloat matrixHeight) {
NSRect matrix_frame = NSZeroRect;
matrix_frame.origin.x = 0;
[matrix_ setContentLeftPadding:match_omnibox_width ? 0 : field_origin_base.x];
+ [matrix_ setContentMaxWidth:NSWidth([field_ bounds])];
matrix_frame.origin.y = PopupPaddingVertical();
matrix_frame.size.width = table_width;
matrix_frame.size.height = matrixHeight;
« no previous file with comments | « chrome/browser/ui/cocoa/omnibox/omnibox_popup_matrix.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698