Wait for content width to update before autoscrolling horizontally

This commit is contained in:
Nathan Sobo
2017-03-15 12:08:38 -06:00
committed by Antonio Scandurra
parent 758466c9af
commit 5d82dcf87a
2 changed files with 14 additions and 1 deletions

View File

@@ -107,11 +107,11 @@ class TextEditorComponent {
this.measureHorizontalPositions()
if (longestLineToMeasure) this.measureLongestLineWidth(longestLineToMeasure)
if (this.pendingAutoscroll) this.finalizeAutoscroll()
this.updateAbsolutePositionedDecorations()
etch.updateSync(this)
if (this.pendingAutoscroll) this.finalizeAutoscroll()
this.currentFrameLineNumberGutterProps = null
}