aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/effects.scale.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/effects.scale.js b/ui/effects.scale.js
index 3a2023537..3b5a02ca4 100644
--- a/ui/effects.scale.js
+++ b/ui/effects.scale.js
@@ -162,6 +162,9 @@ $.effects.size = function(o) {
// Animate
el.animate(el.to, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+ if (el.to.opacity === 0) {
+ el.css('opacity', el.from.opacity);
+ }
if(mode == 'hide') el.hide(); // Hide
$.effects.restore(el, restore ? props : props1); $.effects.removeWrapper(el); // Restore
if(o.callback) o.callback.apply(this, arguments); // Callback