rem: var topd  = (height - this.originalHeight)/2; var leftd = (width  - this.originalWidth)/2; 
add: var topd  = (height - this.dims[0])/2; var leftd = (width  - this.dims[1])/2; 
context:   setDimensions: function(width, height) {    if(this.options.scaleX) this.element.style.width = width + 'px';    if(this.options.scaleY) this.element.style.height = height + 'px';    if(this.options.scaleFromCenter) {      var topd  = (height - this.originalHeight)/2;      var leftd = (width  - this.originalWidth)/2;      if(this.elementPositioning == 'absolute') {        if(this.options.scaleY) this.element.style.top = this.originalTop-topd + "px";        if(this.options.scaleX) this.element.style.left = this.originalLeft-leftd + "px";      } else {        if(this.options.scaleY) this.element.style.top = -topd + "px";        if(this.options.scaleX) this.element.style.left = -leftd + "px";      }    }  }
meta: 4687	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/effects.js/clean/actionpack/lib/action_view/helpers/javascripts/effects.js