aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2009-08-22 08:10:19 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2009-08-22 08:10:19 +0000
commit14922e41da6068d27f8d7dac320051d025d854ae (patch)
tree141e4edbdd34106b35e69821a7fb6d8724d32b22 /ui
parent2189deaa2c30678863d2546c9d2e30a13a5d3e1e (diff)
downloadjquery-ui-14922e41da6068d27f8d7dac320051d025d854ae.tar.gz
jquery-ui-14922e41da6068d27f8d7dac320051d025d854ae.zip
draggable: position and offset were undefined in start callback, fixes #4380
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.draggable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js
index e0b587691..df555e686 100644
--- a/ui/ui.draggable.js
+++ b/ui/ui.draggable.js
@@ -83,7 +83,7 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
this.scrollParent = this.helper.scrollParent();
//The element's absolute position on the page minus margins
- this.offset = this.element.offset();
+ this.offset = this.positionAbs = this.element.offset();
this.offset = {
top: this.offset.top - this.margins.top,
left: this.offset.left - this.margins.left
@@ -99,7 +99,7 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
});
//Generate the original position
- this.originalPosition = this._generatePosition(event);
+ this.originalPosition = this.position = this._generatePosition(event);
this.originalPageX = event.pageX;
this.originalPageY = event.pageY;