summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-15 03:45:33 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-15 03:45:33 +0000
commitd8e6c7fb74962a04da8ec51cb46943d64b949642 (patch)
treeaff4a243e71b08d57470556b20d8825e17eb9d70
parent6692b0d7bca9e0e3327d371c312196f3af9ed7c6 (diff)
downloadchromium_src-d8e6c7fb74962a04da8ec51cb46943d64b949642.zip
chromium_src-d8e6c7fb74962a04da8ec51cb46943d64b949642.tar.gz
chromium_src-d8e6c7fb74962a04da8ec51cb46943d64b949642.tar.bz2
[Mac] Fix page-action positioning for flipped field.
My http://codereview.chromium.org/2998004 refactored calculation of the page-action info-bubble position, but didn't fully factor in a coordinate-system change. BUG=none TEST=Page-action info-bubble position at bottom, not top. Review URL: http://codereview.chromium.org/2980014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52438 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/cocoa/location_bar/location_bar_view_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/location_bar/location_bar_view_mac.mm b/chrome/browser/cocoa/location_bar/location_bar_view_mac.mm
index 275e436..ebd1e60 100644
--- a/chrome/browser/cocoa/location_bar/location_bar_view_mac.mm
+++ b/chrome/browser/cocoa/location_bar/location_bar_view_mac.mm
@@ -314,7 +314,7 @@ NSPoint LocationBarViewMac::GetPageActionBubblePoint(
NSRect frame = [cell pageActionFrameForIndex:index inFrame:[field_ bounds]];
if (!NSIsEmptyRect(frame)) {
frame = [field_ convertRect:frame toView:nil];
- return NSMakePoint(NSMidX(frame), NSMinY(frame));
+ return NSMakePoint(NSMidX(frame), NSMaxY(frame));
}
NOTREACHED();