]> source.dussan.org Git - jquery-ui.git/commitdiff
draggable: ui.absolutePosition, wasn't updated through plugins, fixes #3002
authorPaul Bakaus <paul.bakaus@googlemail.com>
Mon, 30 Jun 2008 13:15:00 +0000 (13:15 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Mon, 30 Jun 2008 13:15:00 +0000 (13:15 +0000)
ui/ui.draggable.js

index af4615607fc74c64a9116507ca4ccc59d9f8973f..6dd939b1f5d9e12b2f875adcb9aed3219a18784f 100644 (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() {