| Index: ui/views/widget/tooltip_manager_win.cc
|
| diff --git a/ui/views/widget/tooltip_manager_win.cc b/ui/views/widget/tooltip_manager_win.cc
|
| index 96886256145ce82ed40def37d21ab66155722e79..98891eadc61d8ed82a2707205d40952cd5c40938 100644
|
| --- a/ui/views/widget/tooltip_manager_win.cc
|
| +++ b/ui/views/widget/tooltip_manager_win.cc
|
| @@ -366,7 +366,9 @@ void TooltipManagerWin::ShowKeyboardTooltip(View* focused_view) {
|
| line_count * tooltip_height_ };
|
| gfx::Rect monitor_bounds =
|
| views::GetMonitorBoundsForRect(gfx::Rect(rect_bounds));
|
| - rect_bounds = gfx::Rect(rect_bounds).AdjustToFit(monitor_bounds).ToRECT();
|
| + gfx::Rect fitted_bounds = gfx::Rect(rect_bounds);
|
| + fitted_bounds.AdjustToFit(monitor_bounds);
|
| + rect_bounds = fitted_bounds.ToRECT();
|
| ::SetWindowPos(keyboard_tooltip_hwnd_, NULL, rect_bounds.left,
|
| rect_bounds.top, 0, 0,
|
| SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOSIZE);
|
|
|