提交 69fe476c 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/documenteditor_table_resize' into 'wrdp'

版式正文编辑器转Word时,固定表格宽度,计算所有td宽度

See merge request o2oa/o2oa!3463
......@@ -3134,14 +3134,14 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
var tableWidth = table.offsetWidth;
table.set("data-o2-width", tableWidth);
var tr = table.getElement("tr");
if (tr){
tr.getElements("td").each(function(td){
var tdx = td.offsetWidth;
var p = (tdx/tableWidth)*100;
td.set("data-o2-width", tdx);
});
}
// var tr = table.getElement("tr");
// if (tr){
table.getElements("td").each(function(td){
var tdx = td.offsetWidth;
var p = (tdx/tableWidth)*100;
td.set("data-o2-width", tdx);
});
//}
});
var tmpNode = this.contentNode.getFirst().getFirst().clone(true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册