Changeset 1313 for trunk/ui/ui.draggable.js
- Timestamp:
- 12/30/08 02:05:51 (15 months ago)
- Files:
-
- 1 modified
-
trunk/ui/ui.draggable.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/ui.draggable.js
r1098 r1313 589 589 590 590 591 // This is a special case where we need to modify a offset calculated on start, since the following happened:591 // This is a special case where we need to modify a offset calculated on start, since the following happened: 592 592 // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent 593 593 // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that … … 595 595 if(scrolled !== false && i.cssPosition == 'absolute' && i.scrollParent[0] != document && $.ui.contains(i.scrollParent[0], i.offsetParent[0])) { 596 596 i.offset.parent = i._getParentOffset(); 597 597 598 } 599 600 // This is another very weird special case that only happens for relative elements: 601 // 1. If the css position is relative 602 // 2. and the scroll parent is the document or similar to the offset parent 603 // we have to refresh the relative offset during the scroll so there are no jumps 604 if(scrolled !== false && i.cssPosition == 'relative' && !(i.scrollParent[0] != document && i.scrollParent[0] != i.offsetParent[0])) { 605 i.offset.relative = i._getRelativeOffset(); 606 } 607 598 608 599 609 }