aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorRichard D. Worth <rdworth@gmail.com>2010-04-23 16:13:06 -0400
committerRichard D. Worth <rdworth@gmail.com>2010-04-23 16:13:06 -0400
commit670ab819a9a6388393e2c1a73c1eaf7095bdc6e0 (patch)
tree7f3636e2ddb6926258bd6ca07aa3fde7db2f0026 /ui
parentcb7eb69973c62f26bcde0325a33a5c837bc9b5e9 (diff)
downloadjquery-ui-670ab819a9a6388393e2c1a73c1eaf7095bdc6e0.tar.gz
jquery-ui-670ab819a9a6388393e2c1a73c1eaf7095bdc6e0.zip
Revert "Draggable: Don't use computed style for top and left of position:relative elements. Fixes #5537 - Draggable: position relative draggable jumps on first drag in Opera"
This reverts commit dc94bbf53628ada1b5d8e7da909f63bfe10f25ff.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.draggable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js
index ba8a419f6..9496ce3f5 100644
--- a/ui/jquery.ui.draggable.js
+++ b/ui/jquery.ui.draggable.js
@@ -305,8 +305,8 @@ $.widget("ui.draggable", $.ui.mouse, {
if(this.cssPosition == "relative") {
var p = this.element.position();
return {
- top: p.top - (parseInt(this.helper[0].style.top,10) || 0) + this.scrollParent.scrollTop(),
- left: p.left - (parseInt(this.helper[0].style.left,10) || 0) + this.scrollParent.scrollLeft()
+ top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(),
+ left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft()
};
} else {
return { top: 0, left: 0 };