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

Unified Diff: ash/system/tray/system_tray.cc

Issue 10027007: ash: Make sure the uber-tray popup is positioned correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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
Index: ash/system/tray/system_tray.cc
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
index ed64a7e2e9dc44f78a42a7656ffb13e71a722a74..1dd7be2fc8e87f4fdd4df4a69acf12cd626c554c 100644
--- a/ash/system/tray/system_tray.cc
+++ b/ash/system/tray/system_tray.cc
@@ -351,6 +351,12 @@ class SystemTrayBubble : public views::BubbleDelegateView {
}
}
+ virtual gfx::Rect GetAnchorRect() OVERRIDE {
+ gfx::Rect rect = tray_->GetWidget()->GetWindowScreenBounds();
+ rect.Inset(0, 0, kPaddingFromRightEdgeOfScreen, kPaddingFromBottomOfScreen);
+ return rect;
+ }
+
// Overridden from views::View.
virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE {
state->role = ui::AccessibilityTypes::ROLE_WINDOW;

Powered by Google App Engine
This is Rietveld 408576698