avoid startup flicker in applies-to widget
This commit is contained in:
parent
05bc4301ad
commit
94f727dc09
|
@ -589,6 +589,9 @@ body:not(.find-open) [data-match-highlight-count="1"] .CodeMirror-selection-high
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
background-color: #f7f7f7; /* .CodeMirror-gutters */
|
||||||
|
border: solid #bbb;
|
||||||
|
border-width: 1px 0;
|
||||||
}
|
}
|
||||||
.applies-to.error {
|
.applies-to.error {
|
||||||
background-color: #f002;
|
background-color: #f002;
|
||||||
|
|
|
@ -130,6 +130,7 @@ function MozSectionWidget(cm, finder = MozSectionFinder(cm)) {
|
||||||
}
|
}
|
||||||
finder.on(update);
|
finder.on(update);
|
||||||
requestAnimationFrame(updateWidgetStyle);
|
requestAnimationFrame(updateWidgetStyle);
|
||||||
|
cm.display.wrapper.style.setProperty('--cm-bar-width', cm.display.barWidth + 'px');
|
||||||
}
|
}
|
||||||
|
|
||||||
function destroy() {
|
function destroy() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user