Add these changes to the non scheduled code path

This commit is contained in:
Linus Eriksson 2018-01-19 19:11:16 +01:00
parent 04507e9ee2
commit b7138a0410

View File

@ -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