From 49916991ed430c7b548876244542ef0428570442 Mon Sep 17 00:00:00 2001 From: leon Date: Mon, 27 Jun 2022 17:12:14 +0800 Subject: [PATCH] Roo/htmleditor/BlockTd.js --- Roo/htmleditor/BlockTd.js | 7 +++++++ 1 file changed, 7 insertions(+) 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 } -- 2.39.2