Chromium Code Reviews| Index: chrome/browser/ui/panels/panel_browser_window_gtk.cc |
| diff --git a/chrome/browser/ui/panels/panel_browser_window_gtk.cc b/chrome/browser/ui/panels/panel_browser_window_gtk.cc |
| index c9342e02c86ccdf031a714d97855f9a16d7598d2..0f85c21f9e8a009307fcfdeb0b3463751cbb6f4b 100644 |
| --- a/chrome/browser/ui/panels/panel_browser_window_gtk.cc |
| +++ b/chrome/browser/ui/panels/panel_browser_window_gtk.cc |
| @@ -142,12 +142,11 @@ void PanelBrowserWindowGtk::OnSizeChanged(int width, int height) { |
| return; |
| window_size_known_ = true; |
| - int bottom = panel_->manager()->GetBottomPositionForExpansionState( |
| - panel_->expansion_state()); |
| - int top = bottom - height; |
| + int top = bounds_.bottom() - height; |
|
prasadt
2011/11/22 01:17:39
Bottom should always be the same as panel_->manage
|
| + int left = bounds_.right() - width; |
|
prasadt
2011/11/22 01:17:39
Again, left should be the same bounds_.x() and whe
prasadt
2011/11/22 01:33:50
I take it back. In theory it should be same as bou
|
| - gtk_window_move(window_, bounds_.x(), top); |
| - StartBoundsAnimation(gfx::Rect(bounds_.x(), top, width, height)); |
| + gtk_window_move(window_, left, top); |
| + StartBoundsAnimation(gfx::Rect(left, top, width, height)); |
| panel_->OnWindowSizeAvailable(); |
| content::NotificationService::current()->Notify( |