Merge pull request #460 from gabrielbazan7/fix/androidPadding

remove android keyboard extra padding
This commit is contained in:
Matias Alejo Garcia 2016-10-14 13:03:44 -03:00 committed by GitHub
commit b006bbf824
2 changed files with 9 additions and 7 deletions

View File

@ -910,13 +910,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
window.addEventListener('native.keyboardshow', function() {
document.querySelector('div.tabs').style.display = 'none';
angular.element(document.querySelector('ion-content.has-tabs')).css('bottom', 0);
});
window.addEventListener('native.keyboardhide', function() {
var tabs = document.querySelectorAll('div.tabs');
angular.element(tabs[0]).css('display', '');
document.body.classList.add('keyboard-open');
});
$ionicPlatform.registerBackButtonAction(function(e) {

View File

@ -431,3 +431,11 @@ input[type=file] {
.left {
float: left;
}
.keyboard-open .tabs{
display: none;
}
.keyboard-open .has-tabs{
bottom:0;
}