mirror of
https://github.com/atom/atom.git
synced 2026-02-10 14:45:11 -05:00
Wait for content width to update before autoscrolling horizontally
This commit is contained in:
committed by
Antonio Scandurra
parent
758466c9af
commit
5d82dcf87a
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user