summaryrefslogtreecommitdiffstats
path: root/ui/views
diff options
context:
space:
mode:
authorvollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-30 19:55:17 +0000
committervollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-30 19:55:17 +0000
commitb949fcb52666d423b7c66d9a7a69d482bf056513 (patch)
treebd85b2cea53b48d530783f5ba614ecd046267bd9 /ui/views
parent079974df4ad84c7cf9e0aa1fb6b0a30dc6f295c9 (diff)
downloadchromium_src-b949fcb52666d423b7c66d9a7a69d482bf056513.zip
chromium_src-b949fcb52666d423b7c66d9a7a69d482bf056513.tar.gz
chromium_src-b949fcb52666d423b7c66d9a7a69d482bf056513.tar.bz2
Fix the scale pivot for views corewm hide window animations.
Right now, we use 0.025 * bounds as the pivot, which basically amounts to the upper left corner of the window. I don't think that was intended. I think that we mean to scale about the center of the window when hiding. BUG=163385 Review URL: https://chromiumcodereview.appspot.com/11411283 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170515 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views')
-rw-r--r--ui/views/corewm/window_animations.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/views/corewm/window_animations.cc b/ui/views/corewm/window_animations.cc
index e1f0810..c7c8691 100644
--- a/ui/views/corewm/window_animations.cc
+++ b/ui/views/corewm/window_animations.cc
@@ -66,7 +66,7 @@ const int kDefaultAnimationDurationForMenuMS = 150;
const float kWindowAnimation_HideOpacity = 0.f;
const float kWindowAnimation_ShowOpacity = 1.f;
-const float kWindowAnimation_TranslateFactor = 0.025f;
+const float kWindowAnimation_TranslateFactor = 0.5f;
const float kWindowAnimation_ScaleFactor = .95f;
const int kWindowAnimation_Rotate_DurationMS = 180;