fix right side menu to open

This commit is contained in:
Adam Bradley
2014-02-23 20:58:04 -06:00
parent a56bc9d8f3
commit 8ef8957744
2 changed files with 9 additions and 3 deletions

View File

@@ -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;