summaryrefslogtreecommitdiffstats
path: root/app/slide_animation.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 21:05:56 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 21:05:56 +0000
commit16e1c0d5a027053e3a22b6d6e40ff38520d16619 (patch)
treeb8506500332c311738b086d4ce532272938c5dc7 /app/slide_animation.h
parenteeb49f7211391245d1468ca5b2ec16cb430fbd41 (diff)
downloadchromium_src-16e1c0d5a027053e3a22b6d6e40ff38520d16619.zip
chromium_src-16e1c0d5a027053e3a22b6d6e40ff38520d16619.tar.gz
chromium_src-16e1c0d5a027053e3a22b6d6e40ff38520d16619.tar.bz2
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
Diffstat (limited to 'app/slide_animation.h')
-rw-r--r--app/slide_animation.h2
1 files changed, 1 insertions, 1 deletions
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.