X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fhtmleditor%2FBlockTd.js;h=acf00d76207cefc7d6baf7fcab553829bb1ecd11;hb=1143ba0aa09edca65c87ade295d6f8e569f73a66;hp=aee13ee72fb16ff12822bece5e9b53c24b1469b9;hpb=3d51c98d3714aa330fc2f20161a1c696633039bb;p=roojs1 diff --git a/Roo/htmleditor/BlockTd.js b/Roo/htmleditor/BlockTd.js index aee13ee72f..acf00d7620 100644 --- a/Roo/htmleditor/BlockTd.js +++ b/Roo/htmleditor/BlockTd.js @@ -57,6 +57,8 @@ 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); @@ -409,6 +411,7 @@ 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){ @@ -441,6 +444,8 @@ 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; } @@ -483,6 +488,7 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { mergeRight: function() { + console.log("htmleditor.BlockTd mergeRight"); // get the contents of the next cell along.. var tr = this.node.closest('tr'); @@ -600,6 +606,8 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { }, updateWidths : function(table) { + console.log("htmleditor.BlockTd updateWidths"); + console.log(table); for(var r = 0 ; r < table.length; r++) { for(var c = 0 ; c < table[r].length; c++) { @@ -618,6 +626,11 @@ 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; @@ -664,7 +677,9 @@ 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; @@ -684,7 +699,9 @@ 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;