Changeset 13224

Show
Ignore:
Timestamp:
03/26/08 06:27:42 (10 months ago)
Author:
alex
Message:

roll back wipeIn changes. Don't need 'em and they were borking the dijit test pages. Refs #6325. !strict

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/fx.js

    r13223 r13224  
    307307        //              it's natural height (with no scrollbar). 
    308308        //              Node must have no margin/border/padding. 
    309         var d = dojo; 
    310         args.node = d.byId(args.node); 
    311         var node = args.node, s = d.hitch(d, "style", node); 
    312  
    313         var anim = d.animateProperty(d.mixin({ 
     309        args.node = dojo.byId(args.node); 
     310        var node = args.node, s = node.style; 
     311 
     312        var anim = dojo.animateProperty(dojo.mixin({ 
    314313                properties: { 
    315314                        height: { 
     
    318317                                        // start at current [computed] height, but use 1px rather than 0 
    319318                                        // because 0 causes IE to display the whole panel 
    320  
    321                                         s("overflow", "hidden"); 
    322  
    323                                         if(s("visibility") == "hidden" || s("display") =="none"){ 
    324                                                 s({ 
    325                                                         "height": 1, 
    326                                                         "display": "", 
    327                                                         "visibility": "" 
    328                                                 }); 
     319                                        s.overflow="hidden"; 
     320                                        if(s.visibility=="hidden"||s.display=="none"){ 
     321                                                s.height="1px"; 
     322                                                s.display=""; 
     323                                                s.visibility=""; 
    329324                                                return 1; 
    330325                                        }else{ 
    331                                                 return Math.max(s("height"), 1); 
     326                                                var height = dojo.style(node, "height"); 
     327                                                return Math.max(height, 1); 
    332328                                        } 
    333329                                }, 
    334330                                end: function(){ 
    335                                         // console.debug(s("visibility"), s("display"), s("height"), node.scrollHeight); 
    336331                                        return node.scrollHeight; 
    337332                                }