Changeset 2074
- Timestamp:
- 02/13/09 04:42:42 (13 months ago)
- Files:
-
- 1 modified
-
trunk/ui/ui.draggable.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/ui.draggable.js
r2073 r2074 300 300 + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent 301 301 + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border) 302 - ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod302 - ($.browser.safari ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod) 303 303 ), 304 304 left: ( … … 306 306 + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent 307 307 + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border) 308 - ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod308 - ($.browser.safari ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod) 309 309 ) 310 310 }; … … 357 357 - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent 358 358 - this.offset.parent.top // The offsetParent's offset without borders (offset + border) 359 + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ))359 + ($.browser.safari ? 0 : ( this.cssPosition == 'fixed' && !$.browser.safari ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) )) 360 360 ), 361 361 left: ( … … 364 364 - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent 365 365 - this.offset.parent.left // The offsetParent's offset without borders (offset + border) 366 + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft())366 + ($.browser.safari ? 0 : ( this.cssPosition == 'fixed' && !$.browser.safari ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() )) 367 367 ) 368 368 };