I noticed that in a case where I use Position.clone, the element with
the cloned position is displayed somewhere off. My understanding of
positioning is a bit shaky at times, but I think clone needs to take
into account the scroll offsets as shown below.
Michael
var Position = {
...
clone: function(source, target) {
source = $(source);
target = $(target);
target.style.position = ''absolute'';
var offsets = this.cumulativeOffset(source);
var scrolls = this.realOffset(source); // ### new
target.style.top = (offsets[1] - scrolls[1]) + ''px'';
target.style.left = (offsets[0] - scrolls[0]) + ''px'';
target.style.width = source.offsetWidth + ''px'';
target.style.height = source.offsetHeight + ''px'';
}
}
--
Michael Schuerig Life is just as deadly
mailto:michael@schuerig.de As it looks
http://www.schuerig.de/michael/ --Richard Thompson, Sibella