Skip to content

Commit

Permalink
draggable,droppable,sortable: deprecated ui.absolutePosition, changed…
Browse files Browse the repository at this point in the history
… to ui.offset (fixes #3978,#3977,#3976)
  • Loading branch information
Paul Bakaus committed Jan 29, 2009
1 parent c88df4d commit 669bdb3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ui/ui.draggable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}

Expand Down
3 changes: 2 additions & 1 deletion ui/ui.droppable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}

Expand Down
3 changes: 2 additions & 1 deletion ui/ui.sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit 669bdb3

Please sign in to comment.