From: Alan Date: Thu, 18 Jan 2024 08:42:44 +0000 (+0800) Subject: attempt to work out col widhts that dont have them. X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=5a102d9649fe4dd1ffe71be6922f83c6b1261c61 attempt to work out col widhts that dont have them. --- diff --git a/Roo/htmleditor/BlockTd.js b/Roo/htmleditor/BlockTd.js index 6bda2c3429..a8a245405e 100644 --- a/Roo/htmleditor/BlockTd.js +++ b/Roo/htmleditor/BlockTd.js @@ -614,7 +614,13 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { if (this.colWidths[0] != false && table[r][c].colspan > 1) { var el = Roo.htmleditor.Block.factory(table[r][c].cell); var width = 0; + var lv = false; for(var i = 0; i < table[r][c].colspan; i ++) { + if (typeof(this.colWidths[c + i]) != 'undefined') { + lv = this.colWidths[c + i]; + } else { + this.colWidths[c + i] = lv; + } width += Math.floor(this.colWidths[c + i]); } el.width = width +'%';