Search and Top Navigation
Ticket #5321: 5321.patch
File 5321.patch, 0.7 KB (added by squeakytoy, March 11, 2010 08:55AM UTC)
Patch to resolve issue with helper positioning
Index: ui/jquery.ui.sortable.js
===================================================================
--- ui/jquery.ui.sortable.js (revision 3886)
+++ ui/jquery.ui.sortable.js (working copy)
@@ -%ld,%ld +%ld,%ld @@
this.helper.css("position", "absolute");
this.cssPosition = this.helper.css("position");
+ //Create the placeholder
+ this._createPlaceholder();
+
$.extend(this.offset, {
click: { //Where the click happened, relative to the element
left: event.pageX - this.offset.left,
@@ -%ld,%ld +%ld,%ld @@
this.currentItem.hide();
}
- //Create the placeholder
- this._createPlaceholder();
-
//Set a containment if given in the options
if(o.containment)
this._setContainment();
Download in other formats:
Original Format
File 5321.patch, 0.7 KB (added by squeakytoy, March 11, 2010 08:55AM UTC)
Patch to resolve issue with helper positioning
Index: ui/jquery.ui.sortable.js
===================================================================
--- ui/jquery.ui.sortable.js (revision 3886)
+++ ui/jquery.ui.sortable.js (working copy)
@@ -%ld,%ld +%ld,%ld @@
this.helper.css("position", "absolute");
this.cssPosition = this.helper.css("position");
+ //Create the placeholder
+ this._createPlaceholder();
+
$.extend(this.offset, {
click: { //Where the click happened, relative to the element
left: event.pageX - this.offset.left,
@@ -%ld,%ld +%ld,%ld @@
this.currentItem.hide();
}
- //Create the placeholder
- this._createPlaceholder();
-
//Set a containment if given in the options
if(o.containment)
this._setContainment();