projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56b6236
)
Roo/htmleditor/BlockTd.js
author
leon
<leon@roojs.com>
Mon, 27 Jun 2022 09:12:14 +0000
(17:12 +0800)
committer
leon
<leon@roojs.com>
Mon, 27 Jun 2022 09:12:14 +0000
(17:12 +0800)
Roo/htmleditor/BlockTd.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/BlockTd.js
b/Roo/htmleditor/BlockTd.js
index
8631517
..
74706b7
100644
(file)
--- 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
}