We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e898ef6 commit 406c71bCopy full SHA for 406c71b
1 file changed
src/vs/workbench/contrib/browserView/electron-browser/overlayManager.ts
@@ -244,6 +244,11 @@ export class BrowserOverlayManager extends Disposable implements IBrowserOverlay
244
245
// Check against all precomputed overlay rectangles
246
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
+ }
252
const overlayRect = this.getRect(overlay.element);
253
if (overlayRect && this.isRectanglesOverlapping(elementRect, overlayRect)) {
254
overlappingOverlays.push({
0 commit comments