Chromium Code Reviews| Index: chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc |
| diff --git a/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc b/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc |
| index 294fd2cec440f3a1a7e1b243bbd027e70a5399c8..35d0634092af5b59429b0f2f45da2276a0e505fb 100644 |
| --- a/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc |
| +++ b/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc |
| @@ -250,8 +250,11 @@ gfx::Rect AppNonClientFrameViewAura::GetControlBounds() const { |
| if (!control_view_) |
| return gfx::Rect(); |
| gfx::Size preferred = control_view_->GetPreferredSize(); |
| - gfx::Point location(width() - preferred.width(), 0); |
| - ConvertPointToWidget(this, &location); |
| + const gfx::Rect bounds = |
| + control_widget_->GetTopLevelWidgetForNativeView( |
| + control_widget_->GetNativeWindow())->GetWindowBoundsInScreen(); |
| + // Position it flush to the right side of the (parent) widget. |
| + gfx::Point location(bounds.width() - preferred.width(), 0); |
|
sky
2012/09/24 21:24:16
control_widget_ is a child widget of the browser.
Mr4D (OOO till 08-26)
2012/09/25 14:23:50
Well - in the case I have seen (and I can reproduc
|
| return gfx::Rect( |
| location.x(), location.y(), |
| preferred.width(), preferred.height()); |