projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f45ee1
)
attempt to work out col widhts that dont have them.
author
Alan
<alan@roojs.com>
Thu, 18 Jan 2024 08:42:44 +0000
(16:42 +0800)
committer
Alan
<alan@roojs.com>
Thu, 18 Jan 2024 08:42:44 +0000
(16:42 +0800)
Roo/htmleditor/BlockTd.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/BlockTd.js
b/Roo/htmleditor/BlockTd.js
index
6bda2c3
..
a8a2454
100644
(file)
--- 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 +'%';