]> source.dussan.org Git - jquery-ui.git/commitdiff
(no commit message)
authorPaul Bakaus <paul.bakaus@googlemail.com>
Mon, 26 May 2008 12:05:22 +0000 (12:05 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Mon, 26 May 2008 12:05:22 +0000 (12:05 +0000)
ui/source/ui.sortable.js

index e923fbe490afc2388015c6e08f20f4b675fd6808..ba3d324f4072d1d233157f1b856e98ee89a456f7 100644 (file)
                        var l = item.left, r = l + item.width, \r
                                t = item.top, b = t + item.height;\r
 \r
-                       if(this.options.tolerance == "pointer" || (this.options.tolerance == "guess" && this.currentItem[0].offsetHeight > item.item[0].offsetHeight)) {\r
+                       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')])) {\r
 \r
                                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;\r
                                \r