Index: chrome/browser/ui/panels/panel_bounds_animation.cc |
diff --git a/chrome/browser/ui/panels/panel_bounds_animation.cc b/chrome/browser/ui/panels/panel_bounds_animation.cc |
index cdf5c5abf913c48ffc97a84d6aa987ccd2025654..79af324c9dc0f7141d2a2d3a91dea5863aef42f0 100644 |
--- a/chrome/browser/ui/panels/panel_bounds_animation.cc |
+++ b/chrome/browser/ui/panels/panel_bounds_animation.cc |
@@ -29,7 +29,8 @@ PanelBoundsAnimation::PanelBoundsAnimation(ui::AnimationDelegate* target, |
// Initialize animation differently in this case, using fast-pause-slow |
// method, see below for more details. |
int duration = kSetBoundsAnimationMs; |
- if (panel_->expansion_state() == Panel::MINIMIZED) { |
+ if (initial_bounds.height() > final_bounds.height() && |
+ panel_->expansion_state() == Panel::MINIMIZED) { |
double hidden_title_height = |
panel_->TitleOnlyHeight() - final_bounds.height(); |
double distance_y = initial_bounds.height() - final_bounds.height(); |