draggable,droppable,sortable: deprecated ui.absolutePosition, changed to ui.offset (fixes #3978,#3977,#3976)

This commit is contained in:
Paul Bakaus 2009-01-29 12:35:38 +00:00
parent c88df4d3ee
commit 669bdb333a
3 changed files with 6 additions and 3 deletions

View File

@ -387,7 +387,8 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
return {
helper: this.helper,
position: this.position,
absolutePosition: this.positionAbs
absolutePosition: this.positionAbs, //deprecated
offset: this.positionAbs
};
}

View File

@ -125,7 +125,8 @@ $.widget("ui.droppable", {
draggable: (c.currentItem || c.element),
helper: c.helper,
position: c.position,
absolutePosition: c.positionAbs
absolutePosition: c.positionAbs, //deprecated
offset: c.positionAbs
};
}

View File

@ -971,7 +971,8 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
helper: self.helper,
placeholder: self.placeholder || $([]),
position: self.position,
absolutePosition: self.positionAbs,
absolutePosition: self.positionAbs, //deprecated
offset: self.positionAbs,
item: self.currentItem,
sender: inst ? inst.element : null
};