fix sidebar hamburger when changing wallet
This commit is contained in:
parent
fa39cee3b6
commit
1aff66091b
2 changed files with 4 additions and 3 deletions
|
|
@ -98,6 +98,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
if (k == 'tab') return;
|
if (k == 'tab') return;
|
||||||
if (k == 'noFocusedWallet') return;
|
if (k == 'noFocusedWallet') return;
|
||||||
if (k == 'backgroundColor') return;
|
if (k == 'backgroundColor') return;
|
||||||
|
if (k == 'physicalScreenWidth') return;
|
||||||
if (k == 'loadingWallet') {
|
if (k == 'loadingWallet') {
|
||||||
self.loadingWallet = true;
|
self.loadingWallet = true;
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -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 (platformInfo.isCordova) {
|
||||||
if (screen.width < 768) {
|
if (screen.width < 768) {
|
||||||
|
|
@ -527,9 +527,9 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (screen.width >= 768) {
|
if (screen.width >= 768) {
|
||||||
window.addEventListener('resize', function() {
|
window.addEventListener('resize', lodash.throttle(function() {
|
||||||
$rootScope.$emit('Local/WindowResize');
|
$rootScope.$emit('Local/WindowResize');
|
||||||
});
|
}, 100));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue