fix(menu): pass platform to menu type

This commit is contained in:
Adam Bradley
2016-06-02 12:03:59 -05:00
parent 4af5e03bd9
commit 7f597a0e55
2 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ export class MenuController {
* @private * @private
*/ */
static create(type: string, menuCmp: Menu, platform: Platform) { static create(type: string, menuCmp: Menu, platform: Platform) {
return new menuTypes[type](menuCmp); return new menuTypes[type](menuCmp, platform);
} }
} }

View File

@ -64,7 +64,7 @@ export class MenuType {
* The menu itself, which is under the content, does not move. * The menu itself, which is under the content, does not move.
*/ */
class MenuRevealType extends MenuType { class MenuRevealType extends MenuType {
constructor(menu: Menu) { constructor(menu: Menu, platform: Platform) {
super(); super();
let openedX = (menu.width() * (menu.side === 'right' ? -1 : 1)) + 'px'; let openedX = (menu.width() * (menu.side === 'right' ? -1 : 1)) + 'px';