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

index cc3ce78..560a477 100644 (file)
@@ -198,15 +198,16 @@ Roo.onReady(function(){
                             return;
                         }
                         if (this.activeDom) {
-                            this.activeDom.style.borderTop = '';
-                            this.activeDom.style.borderBottom = '';
-                            this.activeDom.style.display = '';
+                            Roo.get(this.activeDom).removeClass('x-grid-dd-above');
+                            Roo.get(this.activeDom).removeClass('x-grid-dd-below');
+                            
                             this.activeDom = false;
                         }
                         
                         if (ri == false) {
                             return;
                         }
+                        Roo.get(dom).addClass('x-grid-dd-' + pos);
                         dom.style[ pos == 'above' ? 'borderTop' : 'borderBottom'] ='20px solid #FCFCFC;';
                         dom.style.display =  'block';
                         this.activeDom = dom;