| Index: ui/views/controls/menu/menu_controller.cc
|
| diff --git a/ui/views/controls/menu/menu_controller.cc b/ui/views/controls/menu/menu_controller.cc
|
| index 4dd0f06e297b3e7eb6249144d015ffdf2d4e2b74..8a4e11223512cb9eb899af250d37ee844249539d 100644
|
| --- a/ui/views/controls/menu/menu_controller.cc
|
| +++ b/ui/views/controls/menu/menu_controller.cc
|
| @@ -1072,14 +1072,14 @@ void MenuController::UpdateInitialLocation(
|
|
|
| // Calculate the bounds of the monitor we'll show menus on. Do this once to
|
| // avoid repeated system queries for the info.
|
| - pending_state_.monitor_bounds = gfx::Screen::GetMonitorWorkAreaNearestPoint(
|
| - bounds.origin());
|
| + pending_state_.monitor_bounds = gfx::Screen::GetMonitorNearestPoint(
|
| + bounds.origin()).work_area();
|
| #if defined(USE_ASH)
|
| if (!pending_state_.monitor_bounds.Contains(bounds)) {
|
| // Use the monitor area if the work area doesn't contain the bounds. This
|
| // handles showing a menu from the launcher.
|
| gfx::Rect monitor_area =
|
| - gfx::Screen::GetMonitorAreaNearestPoint(bounds.origin());
|
| + gfx::Screen::GetMonitorNearestPoint(bounds.origin()).bounds();
|
| if (monitor_area.Contains(bounds))
|
| pending_state_.monitor_bounds = monitor_area;
|
| }
|
|
|