Fixed sortable table action

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8906 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-08-26 05:09:40 +00:00
parent ce6b3690d2
commit cf7161e2e4

View file

@ -458,10 +458,10 @@ $('table.sortable')
diff = {x:position.x-event.pageX, y:position.y-event.pageY};
nTop = offset.top - diff.y;
for(i=0,c=offsets.length; i < c; i++) {
o = offsets[i];
if(o.top > nTop || o.bottom < nTop) continue;
if( (i && o.top > nTop) || ((i < c-1) && o.bottom < nTop)) continue;
dropzone = {element:o.$item};
if(o.top > nTop - 12) {