avoid FOUC for dark themes in applies-to widget
This commit is contained in:
parent
94f727dc09
commit
997f1fe8de
|
@ -129,7 +129,7 @@ function MozSectionWidget(cm, finder = MozSectionFinder(cm)) {
|
||||||
update(finder.sections, []);
|
update(finder.sections, []);
|
||||||
}
|
}
|
||||||
finder.on(update);
|
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');
|
cm.display.wrapper.style.setProperty('--cm-bar-width', cm.display.barWidth + 'px');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user