github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 876
    • 199
  • Source
  • Commits
  • Network (199)
  • Graphs
  • Tree: 670ab81

click here to add a description

click here to add a homepage

  • Switch Branches (8)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
    • widget-super
  • Switch Tags (21)
    • 1.9m2
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.4
    • 1.8.3
    • 1.8.2
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

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.
rdworth (author)
Fri Apr 23 13:13:06 -0700 2010
commit  670ab819a9a6388393e2
tree    7f3636e2ddb6926258bd
parent  cb7eb69973c62f26bcde
M ui/jquery.ui.draggable.js 4 ••••
Txt ui/jquery.ui.draggable.js
  • View file @ 670ab81
... ...
@@ -305,8 +305,8 @@ $.widget("ui.draggable", $.ui.mouse, {
305 305
     if(this.cssPosition == "relative") {
306 306
       var p = this.element.position();
307 307
       return {
308  
-        top: p.top - (parseInt(this.helper[0].style.top,10) || 0) + this.scrollParent.scrollTop(),
309  
-        left: p.left - (parseInt(this.helper[0].style.left,10) || 0) + this.scrollParent.scrollLeft()
  308
+        top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(),
  309
+        left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft()
310 310
       };
311 311
     } else {
312 312
       return { top: 0, left: 0 };

0 notes on commit 670ab81

Please log in to comment.
Blog | Support | Training | Job Board | Contact | API | Status | Twitter | Help
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy | Security
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server
  • English
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska
  • 中文