Skip to content

Commit 29a56e8

Browse files
committed
bug fixed #477
1 parent 4b762bd commit 29a56e8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

packages/ve-table/src/editor/edit-input.jsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,17 @@ export default {
339339
top: cellTop - tableTop,
340340
};
341341
} else {
342-
// 虚拟滚动,超出viewport
342+
/*
343+
存在以下可能:
344+
1、虚拟滚动超出viewport
345+
2、单元格被删除(通过右键菜单等方式)
346+
*/
347+
348+
// fixed #477
349+
this.textareaRect = {
350+
left: 0,
351+
top: 0,
352+
};
343353
this.cellEl = null;
344354
this.overflowViewport = true;
345355
}

0 commit comments

Comments
 (0)