Skip to content

Commit

Permalink
draggable: ui.absolutePosition, wasn't updated through plugins, fixes…
Browse files Browse the repository at this point in the history
… #3002
  • Loading branch information
Paul Bakaus committed Jun 30, 2008
1 parent c32255f commit 3603a87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/ui.draggable.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ $.widget("ui.draggable", $.extend($.ui.mouse, {
}, },
propagate: function(n,e) { propagate: function(n,e) {
$.ui.plugin.call(this, n, [e, this.uiHash()]); $.ui.plugin.call(this, n, [e, this.uiHash()]);
if(n == "drag") this.positionAbs = this.convertPositionTo("absolute"); //The absolute position has to be recalculated after plugins
return this.element.triggerHandler(n == "drag" ? n : "drag"+n, [e, this.uiHash()], this.options[n]); return this.element.triggerHandler(n == "drag" ? n : "drag"+n, [e, this.uiHash()], this.options[n]);
}, },
destroy: function() { destroy: function() {
Expand Down

0 comments on commit 3603a87

Please sign in to comment.