X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-ui-debug.js;fp=roojs-ui-debug.js;h=4df34cea14a440d82040de94cd617980392366d3;hp=eb147d81442f15124cac320dab63181fce02b006;hb=70bd80d2cadff863525ac8be1b9c11ad41c15e4b;hpb=df147816297942acb6c120f32719cad5da68c0db diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index eb147d8144..4df34cea14 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -24502,8 +24502,6 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { contextMenu : function(toolbar) { - console.log("htmleditor.BlockTd contextMenu"); - console.log(toolbar); var cell = function() { return Roo.htmleditor.Block.factory(toolbar.tb.selectedNode); @@ -24786,7 +24784,6 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { */ toObject : function() { - console.log("htmleditor.BlockTd toObject"); var ret = { tag : 'td', contenteditable : 'true', // this stops cell selection from picking the table. @@ -24822,8 +24819,6 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { readElement : function(node) { - console.log("htmleditor.BlockTd readElement"); - console.log(node); node = node ? node : this.node ; this.width = node.style.width; this.colspan = Math.max(1,1*node.getAttribute('colspan')); @@ -24856,7 +24851,6 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { toTableArray : function() { - console.log("htmleditor.BlockTd toTableArray"); var ret = []; var tab = this.node.closest('tr').closest('table'); Array.from(tab.rows).forEach(function(r, ri){ @@ -24889,8 +24883,6 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { if (typeof(this.colWidths[cn]) == 'undefined') { this.colWidths[cn] = ce.style.width; - console.log("colWidths " + cn); - console.log(ce.style.width); if (this.colWidths[cn] != '') { all_auto = false; } @@ -25052,6 +25044,7 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { updateWidths : function(table) { console.log("htmleditor.BlockTd updateWidths"); + console.log("TABLE"); console.log(table); for(var r = 0 ; r < table.length; r++) { @@ -25061,6 +25054,8 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { } if (this.colWidths[0] != false && table[r][c].colspan < 2) { + console.log("CELL"); + console.log(table[r][c].cell); var el = Roo.htmleditor.Block.factory(table[r][c].cell); el.width = Math.floor(this.colWidths[c]) +'%'; el.updateElement(el.node); @@ -25071,11 +25066,6 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { }, normalizeWidths : function(table) { - console.log("htmleditor.BlockTd normalizeWidths"); - console.log("colWidths 0"); - console.log(this.colWidths[0]); - console.log("colWidths 1"); - console.log(this.colWidths[1]); if (this.colWidths[0] === false) { var nw = 100.0 / this.colWidths.length; @@ -25122,9 +25112,7 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { shrinkColumn : function() { - console.log("htmleditor.BlockTd shrinkColumn"); var table = this.toTableArray(); - console.log(table); this.normalizeWidths(table); var col = this.cellData.col; var nw = this.colWidths[col] * 0.8; @@ -25144,9 +25132,7 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { }, growColumn : function() { - console.log("htmleditor.BlockTd growColumn"); var table = this.toTableArray(); - console.log(table); this.normalizeWidths(table); var col = this.cellData.col; var nw = this.colWidths[col] * 1.2;