rem: delta = parent.getViewportOffset(); 
add: delta = parent.viewportOffset(); 
context:   clonePosition: function(element, source) {    var options = Object.extend({      setLeft:    true,      setTop:     true,      setWidth:   true,      setHeight:  true,      offsetTop:  0,      offsetLeft: 0    }, arguments[2] || {})    // find page position of source    source = $(source);    var p = source.viewportOffset();    // find coordinate system to use    element = $(element);    var delta = [0, 0];    var parent = null;    // delta [0,0] will do fine with position: fixed elements,     // position:absolute needs offsetParent deltas    if (Element.getStyle(element,'position') == 'absolute') {      parent = element.getOffsetParent();      delta = parent.getViewportOffset();    }    // correct by body offsets (fixes Safari)    if (parent == document.body) {      delta[0] -= document.body.offsetLeft;      delta[1] -= document.body.offsetTop;     }    // set position    if(options.setLeft)   element.style.left  = (p[0] - delta[0] + options.offsetLeft) + 'px';    if(options.setTop)    element.style.top   = (p[1] - delta[1] + options.offsetTop) + 'px';    if(options.setWidth)  element.style.width = source.offsetWidth + 'px';    if(options.setHeight) element.style.height = source.offsetHeight + 'px';    return element;  }
meta: 3332	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3332/7d2ae294a9e358254a3ccdd2a2b44909b26467ab/dom.js/clean/src/dom.js