提交 3c8b82a7 编写于 作者: C campaign

by zhanyi

上级 8df94c24
...@@ -504,6 +504,11 @@ UE.plugins['table'] = function () { ...@@ -504,6 +504,11 @@ UE.plugins['table'] = function () {
} }
} }
if (h == 'h') { if (h == 'h') {
var line;
while (line = me.document.getElementById('ue_tableDragLine')) {
domUtils.remove(line)
}
me.fireEvent('saveScene',true);
var ut = getUETable(target), var ut = getUETable(target),
cells = ut.getSameEndPosCells(target, "x"), cells = ut.getSameEndPosCells(target, "x"),
table = ut.table; table = ut.table;
...@@ -517,6 +522,7 @@ UE.plugins['table'] = function () { ...@@ -517,6 +522,7 @@ UE.plugins['table'] = function () {
cell.setAttribute("width", width); cell.setAttribute("width", width);
}) })
table.setAttribute("width", table.offsetWidth); table.setAttribute("width", table.offsetWidth);
me.fireEvent('saveScene',true);
}) })
} }
...@@ -1023,8 +1029,12 @@ UE.plugins['table'] = function () { ...@@ -1023,8 +1029,12 @@ UE.plugins['table'] = function () {
startTd = getUETable(startTd).getPreviewCell(startTd, state == 'v'); startTd = getUETable(startTd).getPreviewCell(startTd, state == 'v');
} }
hideDragLine(me); hideDragLine(me);
getDragLine(me, me.document); var line;
while (line = me.document.getElementById('ue_tableDragLine')) {
domUtils.remove(line)
}
me.fireEvent('saveScene'); me.fireEvent('saveScene');
getDragLine(me, me.document);
showDragLineAt(state, startTd); showDragLineAt(state, startTd);
mousedown = true; mousedown = true;
//拖动开始 //拖动开始
...@@ -1071,9 +1081,12 @@ UE.plugins['table'] = function () { ...@@ -1071,9 +1081,12 @@ UE.plugins['table'] = function () {
} }
onDrag = ""; onDrag = "";
dragTd = null; dragTd = null;
var line;
hideDragLine(me); while (line = me.document.getElementById('ue_tableDragLine')) {
domUtils.remove(line)
}
me.fireEvent('saveScene'); me.fireEvent('saveScene');
me.document.appendChild(line);
return; return;
} }
//正常状态下的mouseup //正常状态下的mouseup
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册