mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Only handle stylesheet changes after initial measurement
This commit is contained in:
@@ -670,6 +670,8 @@ EditorComponent = React.createClass
|
||||
editor.setSelectedScreenRange([tailPosition, [dragRow + 1, 0]])
|
||||
|
||||
onStylesheetsChanged: (stylesheet) ->
|
||||
return unless @performedInitialMeasurement
|
||||
|
||||
@refreshScrollbars() if @containsScrollbarSelector(stylesheet)
|
||||
@sampleFontStyling()
|
||||
@sampleBackgroundColors()
|
||||
|
||||
Reference in New Issue
Block a user