Only handle stylesheet changes after initial measurement

This commit is contained in:
Nathan Sobo
2014-07-25 14:25:00 -07:00
parent 8e69b0c4a0
commit 2b27c0b440

View File

@@ -670,6 +670,8 @@ EditorComponent = React.createClass
editor.setSelectedScreenRange([tailPosition, [dragRow + 1, 0]])
onStylesheetsChanged: (stylesheet) ->
return unless @performedInitialMeasurement
@refreshScrollbars() if @containsScrollbarSelector(stylesheet)
@sampleFontStyling()
@sampleBackgroundColors()