diff options
Diffstat (limited to 'ui/views/controls/scrollbar/base_scroll_bar.cc')
-rw-r--r-- | ui/views/controls/scrollbar/base_scroll_bar.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/views/controls/scrollbar/base_scroll_bar.cc b/ui/views/controls/scrollbar/base_scroll_bar.cc index 58e2116..42b1b1d 100644 --- a/ui/views/controls/scrollbar/base_scroll_bar.cc +++ b/ui/views/controls/scrollbar/base_scroll_bar.cc @@ -219,7 +219,7 @@ enum ScrollBarContextMenuCommands { void BaseScrollBar::ShowContextMenuForView(View* source, const gfx::Point& p) { Widget* widget = GetWidget(); - gfx::Rect widget_bounds = widget->GetWindowScreenBounds(); + gfx::Rect widget_bounds = widget->GetWindowBoundsInScreen(); gfx::Point temp_pt(p.x() - widget_bounds.x(), p.y() - widget_bounds.y()); View::ConvertPointFromWidget(this, &temp_pt); context_menu_mouse_position_ = IsHorizontal() ? temp_pt.x() : temp_pt.y(); |