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 = {
|
||||
accurateIntersection: true,
|
||||
appendTo: "parent",
|
||||
axis: false,
|
||||
cancel: ":input,option",
|
||||
|
@ -5,14 +5,6 @@
|
||||
|
||||
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() {
|
||||
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;
|
||||
|
||||
if (!fast) {
|
||||
if (this.options.accurateIntersection) {
|
||||
item.width = t.outerWidth();
|
||||
item.height = t.outerHeight();
|
||||
}
|
||||
else {
|
||||
item.width = t[0].offsetWidth;
|
||||
item.height = t[0].offsetHeight;
|
||||
}
|
||||
item.width = t.outerWidth();
|
||||
item.height = t.outerHeight();
|
||||
}
|
||||
|
||||
var p = t.offset();
|
||||
@ -994,7 +988,6 @@ $.extend($.ui.sortable, {
|
||||
version: "@VERSION",
|
||||
eventPrefix: "sort",
|
||||
defaults: {
|
||||
accurateIntersection: true,
|
||||
appendTo: "parent",
|
||||
axis: false,
|
||||
cancel: ":input,option",
|
||||
|
Loading…
Reference in New Issue
Block a user