From 16e1c0d5a027053e3a22b6d6e40ff38520d16619 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Mon, 22 Jun 2009 21:05:56 +0000 Subject: Correct IsClosing() calculation in slide_animation.h http://crbug.com/14786 TEST=set bookmark bar to show by default. open a new browser window. There should be no weird vertical scrolling at the bottom of the page. Review URL: http://codereview.chromium.org/145002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18955 0039d316-1c4b-4281-b951-d872f2087c98 --- app/slide_animation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/slide_animation.h b/app/slide_animation.h index edb7d57..60e0f44 100644 --- a/app/slide_animation.h +++ b/app/slide_animation.h @@ -74,7 +74,7 @@ class SlideAnimation : public Animation { double GetCurrentValue() const { return value_current_; } bool IsShowing() const { return showing_; } - bool IsClosing() const { return value_end_ < value_current_; } + bool IsClosing() const { return !showing_ && value_end_ < value_current_; } private: // Overridden from Animation. -- cgit v1.1