We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getBoundingClientRect()
getClientRects()
1 parent 930883d commit e1f9cbcCopy full SHA for e1f9cbc
menu/internal/menu.ts
@@ -461,6 +461,20 @@ export abstract class Menu extends LitElement {
461
this.cleanUpGlobalEventListeners();
462
}
463
464
+ override getBoundingClientRect() {
465
+ if (!this.surfaceEl) {
466
+ return super.getBoundingClientRect();
467
+ }
468
+ return this.surfaceEl.getBoundingClientRect();
469
470
+
471
+ override getClientRects() {
472
473
+ return super.getClientRects();
474
475
+ return this.surfaceEl.getClientRects();
476
477
478
protected override render() {
479
return this.renderSurface();
480
0 commit comments