mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03: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:
parent
7738eeeacc
commit
85363f8eaa
@ -679,6 +679,7 @@ EditorComponent = React.createClass
|
||||
|
||||
onStylesheetsChanged: (stylesheet) ->
|
||||
@refreshScrollbars() if @containsScrollbarSelector(stylesheet)
|
||||
@sampleBackgroundColors()
|
||||
@remeasureCharacterWidthsIfVisibleAfterNextUpdate = true
|
||||
@requestUpdate() if @visible
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user