diff --git a/src/virtual_renderer.js b/src/virtual_renderer.js index 61249b67d2f..40d5a927cd6 100644 --- a/src/virtual_renderer.js +++ b/src/virtual_renderer.js @@ -1953,6 +1953,13 @@ class VirtualRenderer { _self._dispatchEvent('themeLoaded', {theme:module}); cb && cb(); + + // workaround for safari not redrawing the editor + // https://github.com/ajaxorg/ace/issues/5569 + if (useragent.isSafari && _self.scroller) { + _self.scroller.style.background = "red"; + _self.scroller.style.background = ""; + } } }