Skip to content

Commit

Permalink
fix(menu): fix right side menu - platform becomes _platform
Browse files Browse the repository at this point in the history
Closes #5147
  • Loading branch information
brandyscarney committed Jan 25, 2016
1 parent e672de5 commit 0b0500d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ionic/components/menu/menu-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ class MenuPushType extends MenuType {

if (menu.side == 'right') {
contentOpenedX = -menu.width() + 'px';
menuOpenedX = (menu.platform.width() - menu.width()) + 'px';
menuClosedX = menu.platform.width() + 'px';
menuOpenedX = (menu._platform.width() - menu.width()) + 'px';
menuClosedX = menu._platform.width() + 'px';
} else {
contentOpenedX = menu.width() + 'px';
menuOpenedX = '0px';
Expand Down Expand Up @@ -167,8 +167,8 @@ class MenuOverlayType extends MenuType {
let closedX, openedX;
if (menu.side == 'right') {
// right side
closedX = menu.platform.width() + 'px';
openedX = (menu.platform.width() - menu.width() - 8) + 'px';
closedX = menu._platform.width() + 'px';
openedX = (menu._platform.width() - menu.width() - 8) + 'px';

} else {
// left side
Expand Down

0 comments on commit 0b0500d

Please sign in to comment.