Changeset 1170
- Timestamp:
- 12/17/08 11:24:06 (15 months ago)
- Files:
-
- 1 modified
-
trunk/ui/ui.sortable.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/ui.sortable.js
r1096 r1170 100 100 //Cache the margins of the original element 101 101 this._cacheMargins(); 102 102 103 103 //Get the next scrolling parent 104 104 this.scrollParent = this.helper.scrollParent(); … … 106 106 //The element's absolute position on the page minus margins 107 107 this.offset = this.currentItem.offset(); 108 108 109 this.offset = { 109 110 top: this.offset.top - this.margins.top, 110 111 left: this.offset.left - this.margins.left 111 112 }; 112 113 113 114 // Only after we got the offset, we can change the helper's position to absolute 114 115 // TODO: Still need to figure out a way to make relative sorting possible … … 142 143 //Create the placeholder 143 144 this._createPlaceholder(); 144 145 145 146 //Set a containment if given in the options 146 147 if(o.containment) … … 512 513 if (!fast) { 513 514 if (this.options.accurateIntersection) { 514 item.width = t. width();515 item.height = t. height();515 item.width = t.outerWidth(); 516 item.height = t.outerHeight(); 516 517 } 517 518 else { … … 945 946 }, 946 947 sort: function(event, ui) { 947 948 948 949 var i = $(this).data("sortable"), o = i.options, scrolled = false; 949 950