draggable: ui.absolutePosition, wasn't updated through plugins, fixes #3002

This commit is contained in:
Paul Bakaus 2008-06-30 13:15:00 +00:00
parent c32255fcfa
commit 3603a87d7d

View File

@ -252,6 +252,7 @@ $.widget("ui.draggable", $.extend($.ui.mouse, {
},
propagate: function(n,e) {
$.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]);
},
destroy: function() {