Skip to content

Commit

Permalink
Fixes #80826: Do not update the find widget's layout when it is off-DOM
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Sep 16, 2019
1 parent a63cf6c commit bc93368
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vs/editor/contrib/find/findWidget.ts
Expand Up @@ -642,6 +642,10 @@ export class FindWidget extends Widget implements IOverlayWidget, IHorizontalSas
if (!this._isVisible) {
return;
}
if (!dom.isInDOM(this._domNode)) {
// the widget is not in the DOM
return;
}

const layoutInfo = this._codeEditor.getLayoutInfo();
const editorContentWidth = layoutInfo.contentWidth;
Expand Down

0 comments on commit bc93368

Please sign in to comment.