avoid forced layout in highlightEditedStyle
This commit is contained in:
parent
767b2017e0
commit
11d311d1e8
|
@ -358,7 +358,7 @@ function showStyles(styles = [], matchUrlIds) {
|
|||
}
|
||||
setTimeout(getFaviconSrc);
|
||||
if (sessionStore.justEditedStyleId) {
|
||||
highlightEditedStyle();
|
||||
setTimeout(highlightEditedStyle); // delaying to avoid forced layout
|
||||
} else if ('scrollY' in (history.state || {})) {
|
||||
setTimeout(window.scrollTo, 0, 0, history.state.scrollY);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user