fix scaling issue in wp8 and show menu bar when backbutton is pressed on send view

This commit is contained in:
Gabriel Bazán 2016-06-28 16:30:53 -03:00
commit ecaf2c36df
5 changed files with 36 additions and 30 deletions

View file

@ -536,6 +536,17 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
$ionicPlatform.ready(function() {
if (platformInfo.isCordova) {
window.addEventListener('native.keyboardhide', function() {
$timeout(function() {
$rootScope.shouldHideMenuBar = false; //show menu bar when keyboard is hidden with back button action on send screen
}, 300);
});
window.addEventListener('native.keyboardshow', function() {
$rootScope.shouldHideMenuBar = true; //hide menu bar when keyboard opens with back button action on send screen
$rootScope.$digest();
});
$ionicPlatform.registerBackButtonAction(function(event) {
event.preventDefault();
}, 100);