Index: chrome/browser/ui/panels/panel_browser_view.cc |
=================================================================== |
--- chrome/browser/ui/panels/panel_browser_view.cc (revision 98834) |
+++ chrome/browser/ui/panels/panel_browser_view.cc (working copy) |
@@ -84,7 +84,7 @@ |
void PanelBrowserView::SetBounds(const gfx::Rect& bounds) { |
bounds_ = bounds; |
- //// No animation if the panel is being dragged. |
+ // No animation if the panel is being dragged. |
if (mouse_dragging_) { |
::BrowserView::SetBounds(bounds); |
return; |
@@ -207,8 +207,10 @@ |
break; |
} |
+ int bottom = panel_->manager()->GetBottomPositionForExpansionState( |
+ expansion_state); |
gfx::Rect bounds = bounds_; |
- bounds.set_y(bounds.y() + bounds.height() - height); |
+ bounds.set_y(bottom - height); |
bounds.set_height(height); |
SetBounds(bounds); |
} |