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

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 424
    • 55
  • Source
  • Commits
  • Network (55)
  • Graphs
  • Tree: dc94bbf

click here to add a description

click here to add a homepage

  • Switch Branches (6)
    • bind
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
  • Switch Tags (16)
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 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

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
rdworth (author)
Thu Apr 22 06:56:35 -0700 2010
commit  dc94bbf53628ada1b5d8
tree    8011bd7ff35e674a5bf5
parent  49f8c1c60326f4b98592
M ui/jquery.ui.draggable.js 4 ••••
Txt ui/jquery.ui.draggable.js
  • View file @ dc94bbf
... ...
@@ -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.css("top"),10) || 0) + this.scrollParent.scrollTop(),
309  
-        left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft()
  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()
310 310
       };
311 311
     } else {
312 312
       return { top: 0, left: 0 };

0 notes on commit dc94bbf

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server