Skip to content
Permalink
Browse files

draggable: position and offset were undefined in start callback, fixe…

…s #4380
  • Loading branch information...
Paul Bakaus
Paul Bakaus committed Aug 22, 2009
1 parent 2189dea commit 14922e41da6068d27f8d7dac320051d025d854ae
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit 14922e4

Please sign in to comment.
You can’t perform that action at this time.