| Index: chrome/browser/chromeos/input_method/candidate_window.cc
|
| diff --git a/chrome/browser/chromeos/input_method/candidate_window.cc b/chrome/browser/chromeos/input_method/candidate_window.cc
|
| index 455d643e20763cde4852568bd982700f255dbc2d..17010c50262ac112dd34acc6cd3fb6f03a0c04eb 100644
|
| --- a/chrome/browser/chromeos/input_method/candidate_window.cc
|
| +++ b/chrome/browser/chromeos/input_method/candidate_window.cc
|
| @@ -1216,8 +1216,8 @@ void CandidateWindowView::ResizeAndMoveParentFrame() {
|
| const int horizontal_offset = GetHorizontalOffset();
|
|
|
| gfx::Rect old_bounds = parent_frame_->GetClientAreaBoundsInScreen();
|
| - gfx::Rect screen_bounds = gfx::Screen::GetDisplayNearestWindow(
|
| - parent_frame_->GetNativeView()).work_area();
|
| + gfx::Rect screen_bounds =
|
| + gfx::Screen::GetDisplayMatching(cursor_location_).work_area();
|
| // The size.
|
| gfx::Rect frame_bounds = old_bounds;
|
| frame_bounds.set_size(GetPreferredSize());
|
|
|