Skip to content

Commit 07e8f86

Browse files
committed
Avoid triggering a reflow
1 parent 1dbc1bf commit 07e8f86

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

addons/xterm-addon-search/src/SearchAddon.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,9 +693,6 @@ export class SearchAddon extends Disposable implements ITerminalAddon {
693693
* @returns
694694
*/
695695
private _applyStyles(element: HTMLElement, borderColor: string | undefined, isActiveResult: boolean): void {
696-
if (element.clientWidth <= 0) {
697-
return;
698-
}
699696
if (!element.classList.contains('xterm-find-result-decoration')) {
700697
element.classList.add('xterm-find-result-decoration');
701698
if (borderColor) {

0 commit comments

Comments
 (0)