diff --git a/core/src/components/menu/menu.tsx b/core/src/components/menu/menu.tsx index bd0026acfe..f0e73f1c26 100644 --- a/core/src/components/menu/menu.tsx +++ b/core/src/components/menu/menu.tsx @@ -238,6 +238,11 @@ export class Menu { return !this.disabled && !this.isPaneVisible; } + @Method() + getWidth(): number { + return this.width; + } + private async loadAnimation(): Promise { // Menu swipe animation takes the menu's inner width as parameter, // If `offsetWidth` changes, we need to create a new animation.