diff --git a/src/text-editor-component.js b/src/text-editor-component.js index 67323e66f..d1a9d9a50 100644 --- a/src/text-editor-component.js +++ b/src/text-editor-component.js @@ -276,8 +276,12 @@ class TextEditorComponent { }) }) } else { - this.measureContentDuringUpdateSync() - this.updateSyncAfterMeasuringContent() + const restartFrame = this.measureContentDuringUpdateSync() + if (restartFrame) { + this.updateSync(false) + } else { + this.updateSyncAfterMeasuringContent() + } } this.updateScheduled = false