rem: var oldHeight = Element.getStyle(element, 'height'); var elementDimensions = Element.getDimensions(element); return new Effect.Scale(element, 100, Object.extend({ scaleContent: false, scaleX: false, scaleFrom: 0, scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, restoreAfterFinish: true, afterSetup: function(effect) { with(Element) { makeClipping(effect.element); setStyle(effect.element, {height: '0px'}); show(effect.element); }}, afterFinishInternal: function(effect) { with(Element) { undoClipping(effect.element); setStyle(effect.element, {height: oldHeight}); }} }, arguments[1] || {}) ); 
add: var elementDimensions = element.getDimensions(); return new Effect.Scale(element, 100, Object.extend({ scaleContent: false, scaleX: false, scaleFrom: 0, scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width}, restoreAfterFinish: true, afterSetup: function(effect) { effect.element.makeClipping().setStyle({height: '0px'}).show(); }, afterFinishInternal: function(effect) { effect.element.undoClipping(); } }, arguments[1] || {})); 
context: Effect.BlindDown = function(element) {  element = $(element);  var oldHeight = Element.getStyle(element, 'height');  var elementDimensions = Element.getDimensions(element);  return new Effect.Scale(element, 100,     Object.extend({ scaleContent: false,       scaleX: false,      scaleFrom: 0,      scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},      restoreAfterFinish: true,      afterSetup: function(effect) { with(Element) {        makeClipping(effect.element);        setStyle(effect.element, {height: '0px'});        show(effect.element);       }},        afterFinishInternal: function(effect) { with(Element) {        undoClipping(effect.element);        setStyle(effect.element, {height: oldHeight});      }}    }, arguments[1] || {})  );}
meta: 6359	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6359/52d313976f72b3f30c833a7675d476a595bc284d/effects.js/clean/web/js/effects.js