Displaying 1 result from an estimated 1 matches for "setleft".
Did you mean:
getleft
2006 Feb 08
2
Prototype: Position.clone()
...'';
target.style.left = offsets[0] + ''px'';
target.style.width = source.offsetWidth + ''px'';
target.style.height = source.offsetHeight + ''px'';
},
clone: function(source, target) {
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 = Position.page(source);
// find coordinate system to use
target = $(...