提交 345d47e1 编写于 作者: R rebornix

Use cell container width when creating new markdown cell in edit mode.

上级 f66245d5
......@@ -373,7 +373,7 @@ class StatefullMarkdownCell extends Disposable {
this._register(viewCell.onDidChangeEditingState(() => {
if (viewCell.isEditing) {
// switch to editing mode
const width = templateData.container.clientWidth - 24 /** for scrollbar and margin right */;
const width = templateData.cellContainer.clientWidth - 24 /** for scrollbar and margin right */;
const lineNum = viewCell.lineCount;
const totalHeight = Math.max(lineNum + 1, 5) * 21;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册