Roo/grid/GridDragZone.js
authorAlan Knowles <alan@akbkhome.com>
Sun, 18 Nov 2012 07:01:43 +0000 (15:01 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 18 Nov 2012 07:01:43 +0000 (15:01 +0800)
Roo/grid/GridDragZone.js

index 842e1fd..f07f0d2 100644 (file)
@@ -32,8 +32,13 @@ Roo.extend(Roo.grid.GridDragZone, Roo.dd.DragZone, {
         var rowIndex = this.view.findRowIndex(t);
         if(rowIndex !== false){
             var sm = this.grid.selModel;
+            
+            if (sm.getSelectedCell && !sm.getSelectedCell()) {
+                sm.mouseDown(e, t);
+            }
+            
             //if(!sm.isSelected(rowIndex) || e.hasModifier()){
-              //  sm.mouseDown(e, t);
+              //  
             //}
             if (e.hasModifier()){
                 sm.handleMouseDown(e, t); // non modifier buttons are handled by row select.