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

Unified Diff: chrome/browser/ui/views/avatar_menu_bubble_view.cc

Issue 8863009: Fix alignment of avatar bubbles in the NTP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use Rect::Ofset() Created 9 years 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
Index: chrome/browser/ui/views/avatar_menu_bubble_view.cc
diff --git a/chrome/browser/ui/views/avatar_menu_bubble_view.cc b/chrome/browser/ui/views/avatar_menu_bubble_view.cc
index 6074c18d243f1eda4ffd9da4a5474e334cc61b20..cecd7478d6999d1822b094aa83fad13f88b095c6 100644
--- a/chrome/browser/ui/views/avatar_menu_bubble_view.cc
+++ b/chrome/browser/ui/views/avatar_menu_bubble_view.cc
@@ -457,8 +457,8 @@ void AvatarMenuBubbleView::LinkClicked(views::Link* source, int event_flags) {
}
}
-gfx::Point AvatarMenuBubbleView::GetAnchorPoint() {
- return gfx::Point(anchor_rect_.CenterPoint().x(), anchor_rect_.bottom());
+gfx::Rect AvatarMenuBubbleView::GetAnchorRect() {
+ return anchor_rect_;
}
void AvatarMenuBubbleView::Init() {

Powered by Google App Engine
This is Rietveld 408576698