Skip to content

Commit 3603a87

Browse files
author
Paul Bakaus
committed
draggable: ui.absolutePosition, wasn't updated through plugins, fixes #3002
1 parent c32255f commit 3603a87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/ui.draggable.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ $.widget("ui.draggable", $.extend($.ui.mouse, {
252252
},
253253
propagate: function(n,e) {
254254
$.ui.plugin.call(this, n, [e, this.uiHash()]);
255+
if(n == "drag") this.positionAbs = this.convertPositionTo("absolute"); //The absolute position has to be recalculated after plugins
255256
return this.element.triggerHandler(n == "drag" ? n : "drag"+n, [e, this.uiHash()], this.options[n]);
256257
},
257258
destroy: function() {

0 commit comments

Comments
 (0)