diff --git a/edit/moz-section-widget.js b/edit/moz-section-widget.js index 5588febc..2bd91c3a 100644 --- a/edit/moz-section-widget.js +++ b/edit/moz-section-widget.js @@ -129,7 +129,7 @@ function MozSectionWidget(cm, finder = MozSectionFinder(cm)) { update(finder.sections, []); } finder.on(update); - requestAnimationFrame(updateWidgetStyle); + updateWidgetStyle(); // updating in this paint frame to avoid FOUC for dark themes cm.display.wrapper.style.setProperty('--cm-bar-width', cm.display.barWidth + 'px'); }