From b7138a041079fc85fa13b4c1218f0a7c197957dc Mon Sep 17 00:00:00 2001 From: Linus Eriksson Date: Fri, 19 Jan 2018 19:11:16 +0100 Subject: [PATCH] Add these changes to the non scheduled code path --- src/text-editor-component.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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