From 7f597a0e55b80fc0321c98da5b93b2b152d726f5 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 2 Jun 2016 12:03:59 -0500 Subject: [PATCH] fix(menu): pass platform to menu type --- src/components/menu/menu-controller.ts | 2 +- src/components/menu/menu-types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/menu/menu-controller.ts b/src/components/menu/menu-controller.ts index 82da9f3c09b..595ffe35dcc 100644 --- a/src/components/menu/menu-controller.ts +++ b/src/components/menu/menu-controller.ts @@ -294,7 +294,7 @@ export class MenuController { * @private */ static create(type: string, menuCmp: Menu, platform: Platform) { - return new menuTypes[type](menuCmp); + return new menuTypes[type](menuCmp, platform); } } diff --git a/src/components/menu/menu-types.ts b/src/components/menu/menu-types.ts index f0aa1624a07..9d1e88de4c3 100644 --- a/src/components/menu/menu-types.ts +++ b/src/components/menu/menu-types.ts @@ -64,7 +64,7 @@ export class MenuType { * The menu itself, which is under the content, does not move. */ class MenuRevealType extends MenuType { - constructor(menu: Menu) { + constructor(menu: Menu, platform: Platform) { super(); let openedX = (menu.width() * (menu.side === 'right' ? -1 : 1)) + 'px';