Merge pull request #4616 from gabrielbazan7/fix/resizeHamb1

fix sidebar hamburger when changing wallet
This commit is contained in:
Gustavo Maximiliano Cortez 2016-07-21 10:16:00 -03:00 committed by GitHub
commit 394cff6291
2 changed files with 4 additions and 3 deletions

View file

@ -98,6 +98,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
if (k == 'tab') return;
if (k == 'noFocusedWallet') return;
if (k == 'backgroundColor') return;
if (k == 'physicalScreenWidth') return;
if (k == 'loadingWallet') {
self.loadingWallet = true;
return;

View file

@ -508,7 +508,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
});
})
.run(function($rootScope, $state, $location, $log, $timeout, $ionicPlatform, platformInfo, profileService, uxLanguage, go, gettextCatalog) {
.run(function($rootScope, $state, $location, $log, $timeout, $ionicPlatform, lodash, platformInfo, profileService, uxLanguage, go, gettextCatalog) {
if (platformInfo.isCordova) {
if (screen.width < 768) {
@ -527,9 +527,9 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
} else {
if (screen.width >= 768) {
window.addEventListener('resize', function() {
window.addEventListener('resize', lodash.throttle(function() {
$rootScope.$emit('Local/WindowResize');
});
}, 100));
}
}