mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Resample background colors whenever stylesheets change
This prevents a flicker that occurred on theme changes when we just detected this via polling. I'm going to leave the polling as a catch-all in case the editor is styled inline in some way.
This commit is contained in:
@@ -679,6 +679,7 @@ EditorComponent = React.createClass
|
||||
|
||||
onStylesheetsChanged: (stylesheet) ->
|
||||
@refreshScrollbars() if @containsScrollbarSelector(stylesheet)
|
||||
@sampleBackgroundColors()
|
||||
@remeasureCharacterWidthsIfVisibleAfterNextUpdate = true
|
||||
@requestUpdate() if @visible
|
||||
|
||||
|
||||
Reference in New Issue
Block a user