Skip to content

Commit

Permalink
fix right side menu to open
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Bradley committed Feb 24, 2014
1 parent a56bc9d commit 8ef8957
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/ext/angular/src/directive/ionicSideMenu.js
Expand Up @@ -111,10 +111,10 @@ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture', 'ionic.service.vie
return $scope.sideMenuContentTranslateX || 0;
},
setTranslateX: ionic.animationFrameThrottle(function(amount) {
if(amount > 0) {
$element[0].style[ionic.CSS.TRANSFORM] = 'translate3d(' + amount + 'px, 0, 0)';
} else {
if(amount == 0) {
$element[0].style[ionic.CSS.TRANSFORM] = 'none';
} else {
$element[0].style[ionic.CSS.TRANSFORM] = 'translate3d(' + amount + 'px, 0, 0)';
}
$timeout(function() {
$scope.sideMenuContentTranslateX = amount;
Expand Down
6 changes: 6 additions & 0 deletions js/ext/angular/test/sideMenu2.html
Expand Up @@ -44,6 +44,12 @@
</ion-content>
</ion-side-menu>

<ion-side-menu side="right">
<header class="bar bar-header bar-assertive">
<div class="title">Right Menu</div>
</header>
</ion-side-menu>

</ion-side-menus>
</script>

Expand Down

0 comments on commit 8ef8957

Please sign in to comment.