From 85363f8eaa8a85ea3b61f40b7cbd79cffbe0a462 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 24 Jul 2014 17:25:04 -0700 Subject: [PATCH] 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. --- src/editor-component.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor-component.coffee b/src/editor-component.coffee index 1f285f35c..51a5d21f4 100644 --- a/src/editor-component.coffee +++ b/src/editor-component.coffee @@ -679,6 +679,7 @@ EditorComponent = React.createClass onStylesheetsChanged: (stylesheet) -> @refreshScrollbars() if @containsScrollbarSelector(stylesheet) + @sampleBackgroundColors() @remeasureCharacterWidthsIfVisibleAfterNextUpdate = true @requestUpdate() if @visible