git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fc26b57
)
Added fix to stop height/width of auto from occurring when only opacity was being...
author
John Resig
<jeresig@gmail.com>
Sat, 8 Apr 2006 06:34:04 +0000
(06:34 +0000)
committer
John Resig
<jeresig@gmail.com>
Sat, 8 Apr 2006 06:34:04 +0000
(06:34 +0000)
fx/fx.js
patch
|
blob
|
history
diff --git
a/fx/fx.js
b/fx/fx.js
index
9432538
..
0a8afbb
100644
(file)
--- a/
fx/fx.js
+++ b/
fx/fx.js
@@
-112,8
+112,10
@@
function fx(el,op,ty,tz){
setTimeout(function(){
y.overflow = z.oo;
if(y.height=="0px"||y.width=="0px")z.ss("none");
setTimeout(function(){
y.overflow = z.oo;
if(y.height=="0px"||y.width=="0px")z.ss("none");
- $.setAuto( z.el, "height" );
- $.setAuto( z.el, "width" );
+ if ( ty != "opacity" ) {
+ $.setAuto( z.el, "height" );
+ $.setAuto( z.el, "width" );
+ }
if(z.o.onComplete.constructor == Function){z.el.$_ = z.o.onComplete;z.el.$_();}
},13);
} else
if(z.o.onComplete.constructor == Function){z.el.$_ = z.o.onComplete;z.el.$_();}
},13);
} else
@@
-166,9
+168,9
@@
fx.Resize = function(e,o){
};
fx.FadeSize = function(e,o){
var z = this;
};
fx.FadeSize = function(e,o){
var z = this;
- var p = new fx.Opacity(e,o);
- if(o) o.onComplete = null;
var r = new fx.Resize(e,o);
var r = new fx.Resize(e,o);
+ if(o) o.onComplete = null;
+ var p = new fx.Opacity(e,o);
for(var i in fx.fn){(function(){
var j = fx.fn[i];
z[j] = function(a,b){p[j]();r[j](a,b);};
for(var i in fx.fn){(function(){
var j = fx.fn[i];
z[j] = function(a,b){p[j]();r[j](a,b);};