examples/grid/edit-grid.js
authorAlan Knowles <alan@akbkhome.com>
Sun, 18 Nov 2012 08:02:59 +0000 (16:02 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 18 Nov 2012 08:02:59 +0000 (16:02 +0800)
examples/grid/edit-grid.js

index a20c6d0..4b96cff 100644 (file)
@@ -183,14 +183,14 @@ Roo.onReady(function(){
                         // we may drop nodes anywhere, as long as allowChildren has not been set to false..
                         
                           
-                        var q = (b - t) / 2);
+                        var q = (b - t) / 2;
                         if(y >= t && y < (t + q)){
                             return "above";
-                        }else if(!noBelow && (noAppend || y >= b-q && y <= b)){
+                        }
+                        if(!noBelow && (noAppend || y >= b-q && y <= b)){
                             return "below";
-                        }else{
-                            return "append";
                         }
+                        return false;
                     },                  
               });