Changeset 552

Show
Ignore:
Timestamp:
01/22/06 13:14:19 (3 years ago)
Author:
therve@gmail.com
Message:

Bug in elementDimensions, try to make Grow work

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mochikit/branches/scriptaculous/MochiKit/DOM.js

    r550 r552  
    147147    } 
    148148    if (self.computedStyle(elem, 'display') != 'none') { 
    149         return new self.Dimensions(elem.w || 0, elem.h || 0); 
     149        return new self.Dimensions(elem.offsetWidth || 0, elem.offsetHeight || 0); 
    150150    } 
    151151    var s = elem.style; 
  • mochikit/branches/scriptaculous/MochiKit/Effects.js

    r551 r552  
    493493        // stylesheets (to 0 if you do not need them) 
    494494        MochiKit.DOM.makePositioned(this.element); 
     495 
    495496        var s = this.element.style; 
    496497        var originalVisibility = s.visibility; 
     
    505506        this.originalTop = parseFloat(MochiKit.DOM.getStyle(this.element, 
    506507                                                            'top') || '0'); 
    507         log(this.originalLeft + " " + this.originalTop); 
    508  
    509508        if (this.options.mode == 'absolute') { 
    510509            // absolute movement, so we need to calc deltaX and deltaY 
     
    523522            top: this.options.y * position + this.originalTop + 'px' 
    524523        }); 
    525     } 
     524    }, 
     525 
     526    finish: function (position) { 
     527        MochiKit.DOM.undoPositioned(this.element); 
     528    }, 
    526529}); 
    527530 
     
    11901193                }) 
    11911194                ], optionsParallel 
    1192             ) 
     1195            ); 
    11931196        } 
    11941197    });