Skip to content

Commit

Permalink
fix: workaround for safari rendering bug (#5573)
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Jun 11, 2024
1 parent 7cf2b06 commit f9a152f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/virtual_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
}
}
}

Expand Down

0 comments on commit f9a152f

Please sign in to comment.