From: leon Date: Mon, 27 Jun 2022 09:12:14 +0000 (+0800) Subject: Roo/htmleditor/BlockTd.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=49916991ed430c7b548876244542ef0428570442 Roo/htmleditor/BlockTd.js --- diff --git a/Roo/htmleditor/BlockTd.js b/Roo/htmleditor/BlockTd.js index 86315178b3..74706b723c 100644 --- a/Roo/htmleditor/BlockTd.js +++ b/Roo/htmleditor/BlockTd.js @@ -623,6 +623,13 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { else { console.log("CELL COLSPAN"); console.log(table[r][c]); + var el = Roo.htmleditor.Block.factory(table[r][c].cell); + var width = 0; + for(var i = 0; i < table[r][c].colspan; i ++) { + width += Math.floor(this.colWidths[c + i]); + } + el.width = width +'%'; + el.updateElement(el.node); } table[r][c].cell = false; // done }