diff --git a/js/ext/angular/src/directive/ionicSideMenu.js b/js/ext/angular/src/directive/ionicSideMenu.js index 2b392e7dc10..ac0820f3e88 100644 --- a/js/ext/angular/src/directive/ionicSideMenu.js +++ b/js/ext/angular/src/directive/ionicSideMenu.js @@ -113,11 +113,7 @@ 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] = 'none'; - } else { - $element[0].style[ionic.CSS.TRANSFORM] = 'translate3d(' + amount + 'px, 0, 0)'; - } + $element[0].style[ionic.CSS.TRANSFORM] = 'translate3d(' + amount + 'px, 0, 0)'; $timeout(function() { $scope.sideMenuContentTranslateX = amount; }); diff --git a/scss/_menu.scss b/scss/_menu.scss index c9a6382bfb6..4396ecf84e7 100644 --- a/scss/_menu.scss +++ b/scss/_menu.scss @@ -26,20 +26,20 @@ .grade-b .menu-content, .grade-c .menu-content { + @include box-sizing(content-box); right: -1px; left: -1px; - @include box-sizing(content-box); border-right: 1px solid #ccc; border-left: 1px solid #ccc; box-shadow: none; } -.menu-left { - left: 0; +.menu-left { + left: 0; } -.menu-right { - right: 0; +.menu-right { + right: 0; } .menu-animated {