Fix #12846. Restore overflow when animation is stopped.

(Cherry picked from a6c358d)
This commit is contained in:
Dave Methvin
2013-01-26 22:02:15 -05:00
parent 74aa3eb79c
commit 3f9f2b1dbc
2 changed files with 5 additions and 3 deletions

2
src/effects.js vendored
View File

@@ -303,7 +303,7 @@ function defaultPrefilter( elem, props, opts ) {
if ( opts.overflow ) {
style.overflow = "hidden";
if ( !jQuery.support.shrinkWrapBlocks ) {
anim.done(function() {
anim.always(function() {
style.overflow = opts.overflow[ 0 ];
style.overflowX = opts.overflow[ 1 ];
style.overflowY = opts.overflow[ 2 ];