提交 e49dda99 编写于 作者: 许恒

[fixed]by xuheng th下不出现平均分布行

上级 3638f2ff
......@@ -1645,6 +1645,7 @@ UE.plugins['table'] = function () {
queryCommandState:function () {
var ut = getUETableBySelected(this);
if (!ut) return -1;
if (ut.selectedTds && /th/ig.test(ut.selectedTds[0].tagName)) return -1;
return ut.isFullRow() || ut.isFullCol() ? 0 : -1;
},
execCommand:function (cmd) {
......@@ -1668,7 +1669,7 @@ UE.plugins['table'] = function () {
thHeight = thArr[0].offsetHeight;
}
sumHeight = tb.offsetHeight - (captionHeight||0) - (thHeight||0);
sumHeight = tb.offsetHeight - (captionHeight || 0) - (thHeight || 0);
rowNum = thArr.length == 0 ? ut.rowsNum : (ut.rowsNum - 1);
} else {
var begin = ut.cellsRange.beginRowIndex,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册