attempt to work out col widhts that dont have them.
authorAlan <alan@roojs.com>
Thu, 18 Jan 2024 08:42:44 +0000 (16:42 +0800)
committerAlan <alan@roojs.com>
Thu, 18 Jan 2024 08:42:44 +0000 (16:42 +0800)
Roo/htmleditor/BlockTd.js

index 6bda2c3..a8a2454 100644 (file)
@@ -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  +'%';