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

Unified Diff: ui/views/bubble/bubble_delegate.cc

Issue 13142003: Fix app list position in windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 7 years, 9 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 | « ui/views/bubble/bubble_delegate.h ('k') | ui/views/touchui/touch_editing_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_delegate.cc
diff --git a/ui/views/bubble/bubble_delegate.cc b/ui/views/bubble/bubble_delegate.cc
index 4f372c4a47e8bb9169aa62d87bce6280a46e2471..abfa8a5375605971e352a65e96dbf9f8ea651eff 100644
--- a/ui/views/bubble/bubble_delegate.cc
+++ b/ui/views/bubble/bubble_delegate.cc
@@ -231,9 +231,10 @@ void BubbleDelegateView::OnWidgetBoundsChanged(Widget* widget,
}
gfx::Rect BubbleDelegateView::GetAnchorRect() {
- gfx::Rect anchor_bounds = anchor_view() ? anchor_view()->GetBoundsInScreen() :
- gfx::Rect(anchor_point_, gfx::Size());
- anchor_bounds.Inset(anchor_insets_);
+ if (!anchor_view())
+ return anchor_rect_;
+ gfx::Rect anchor_bounds = anchor_view()->GetBoundsInScreen();
+ anchor_bounds.Inset(anchor_view_insets_);
return anchor_bounds;
}
« no previous file with comments | « ui/views/bubble/bubble_delegate.h ('k') | ui/views/touchui/touch_editing_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698