From edb0f7e406f83e7d31dcee0f6d29e6d90a510aa3 Mon Sep 17 00:00:00 2001 From: artur_movsisyan Date: Wed, 8 Jan 2025 16:46:31 +0400 Subject: [PATCH] #2986 fix: Spreadsheet typing Cursor jumping --- cell/view/StringRender.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cell/view/StringRender.js b/cell/view/StringRender.js index 4201bdbdcb..2f1bca6b4e 100644 --- a/cell/view/StringRender.js +++ b/cell/view/StringRender.js @@ -1293,8 +1293,8 @@ let align = this.flags ? this.flags.textAlign : null; if (initAllLines) { if (this.lines) { - let lineWidth = this._calcLineWidth(startPos); for (let i = 0; i < this.lines.length; ++i) { + let lineWidth = this._calcLineWidth(this.lines[i].beg); this.lines[i].initStartX(lineWidth, x, maxWidth, align); } }