Skip to content

Commit 406c71b

Browse files
committed
Fix Browser not visible in Agents App
1 parent e898ef6 commit 406c71b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/vs/workbench/contrib/browserView/electron-browser/overlayManager.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@ export class BrowserOverlayManager extends Disposable implements IBrowserOverlay
244244

245245
// Check against all precomputed overlay rectangles
246246
for (const overlay of this.overlays()) {
247+
// Skip overlays that are ancestors of the target element,
248+
// e.g., the modal editor backdrop when the browser is inside the modal
249+
if (overlay.element.contains(element)) {
250+
continue;
251+
}
247252
const overlayRect = this.getRect(overlay.element);
248253
if (overlayRect && this.isRectanglesOverlapping(elementRect, overlayRect)) {
249254
overlappingOverlays.push({

0 commit comments

Comments
 (0)