Pman.Gnumeric.js
[Pman.Core] / Pman.Gnumeric.js
index 9060fbd..2574bd2 100644 (file)
@@ -1197,6 +1197,12 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
         this.grid[row][col].width = width;
         this.grid[row][col].height = height;
         
+        var godoc = this.doc.getElementsByTagNameNS('*','GODoc')[0];
+        
+        if(godoc && godoc.parentNode) {
+            godoc.parentNode.removeChild(godoc);
+        }
+        
         return true;
     },
     
@@ -1371,9 +1377,11 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
         this.grid[startRow][startCol].width = width;
         this.grid[startRow][startCol].height = height;
         
-        var godoc = this.doc.getElementsByTagNameNS('*','GODoctest')[0];
+        var godoc = this.doc.getElementsByTagNameNS('*','GODoc')[0];
         
-        console.log(godoc);
+        if(godoc && godoc.parentNode) {
+            godoc.parentNode.removeChild(godoc);
+        }
         
         return true;
     },