mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Sortable: Removed accurateIntersection option (Fixes #4225).
This commit is contained in:
parent
94c62b2ab0
commit
47cdc542e8
@ -3,7 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
var sortable_defaults = {
|
var sortable_defaults = {
|
||||||
accurateIntersection: true,
|
|
||||||
appendTo: "parent",
|
appendTo: "parent",
|
||||||
axis: false,
|
axis: false,
|
||||||
cancel: ":input,option",
|
cancel: ":input,option",
|
||||||
|
@ -5,14 +5,6 @@
|
|||||||
|
|
||||||
module("sortable: options");
|
module("sortable: options");
|
||||||
|
|
||||||
test("{ accurateIntersection: true }, default", function() {
|
|
||||||
ok(false, "missing test - untested code is broken code.");
|
|
||||||
});
|
|
||||||
|
|
||||||
test("{ accurateIntersection: false }", function() {
|
|
||||||
ok(false, "missing test - untested code is broken code.");
|
|
||||||
});
|
|
||||||
|
|
||||||
test("{ appendTo: 'parent' }, default", function() {
|
test("{ appendTo: 'parent' }, default", function() {
|
||||||
ok(false, "missing test - untested code is broken code.");
|
ok(false, "missing test - untested code is broken code.");
|
||||||
});
|
});
|
||||||
|
@ -574,14 +574,8 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
|
|||||||
var t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item;
|
var t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item;
|
||||||
|
|
||||||
if (!fast) {
|
if (!fast) {
|
||||||
if (this.options.accurateIntersection) {
|
item.width = t.outerWidth();
|
||||||
item.width = t.outerWidth();
|
item.height = t.outerHeight();
|
||||||
item.height = t.outerHeight();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
item.width = t[0].offsetWidth;
|
|
||||||
item.height = t[0].offsetHeight;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var p = t.offset();
|
var p = t.offset();
|
||||||
@ -994,7 +988,6 @@ $.extend($.ui.sortable, {
|
|||||||
version: "@VERSION",
|
version: "@VERSION",
|
||||||
eventPrefix: "sort",
|
eventPrefix: "sort",
|
||||||
defaults: {
|
defaults: {
|
||||||
accurateIntersection: true,
|
|
||||||
appendTo: "parent",
|
appendTo: "parent",
|
||||||
axis: false,
|
axis: false,
|
||||||
cancel: ":input,option",
|
cancel: ":input,option",
|
||||||
|
Loading…
Reference in New Issue
Block a user