diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-05-26 12:05:22 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-05-26 12:05:22 +0000 |
commit | 097fc4edaed8a882e07f0e80b4654483ddd97e15 (patch) | |
tree | 04b439d05289365f16e3833e1ca9239c551599ff /ui/source | |
parent | e65ce1428460d53a74ee5f9e469d3bab40520175 (diff) | |
download | jquery-ui-097fc4edaed8a882e07f0e80b4654483ddd97e15.tar.gz jquery-ui-097fc4edaed8a882e07f0e80b4654483ddd97e15.zip |
Diffstat (limited to 'ui/source')
-rw-r--r-- | ui/source/ui.sortable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/source/ui.sortable.js b/ui/source/ui.sortable.js index e923fbe49..ba3d324f4 100644 --- a/ui/source/ui.sortable.js +++ b/ui/source/ui.sortable.js @@ -118,7 +118,7 @@ var l = item.left, r = l + item.width,
t = item.top, b = t + item.height;
- if(this.options.tolerance == "pointer" || (this.options.tolerance == "guess" && this.currentItem[0].offsetHeight > item.item[0].offsetHeight)) {
+ if(this.options.tolerance == "pointer" || (this.options.tolerance == "guess" && this.currentItem[0]['offset'+(this.floating ? 'Width' : 'Height')] > item.item[0]['offset'+(this.floating ? 'Width' : 'Height')])) {
if(!(y1 + this.offset.click.top > t && y1 + this.offset.click.top < b && x1 + this.offset.click.left > l && x1 + this.offset.click.left < r)) return false;
|