Merge pull request #110 from gabrielbazan7/feat/lockOrientation

lock orientation when screen width < 768
This commit is contained in:
Gustavo Maximiliano Cortez 2016-09-14 11:50:20 -03:00 committed by GitHub
commit e8c242992a

View file

@ -769,6 +769,9 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
$ionicPlatform.ready(function() {
if (platformInfo.isCordova) {
if (screen.width < 768)
screen.lockOrientation('portrait');
if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
cordova.plugins.Keyboard.disableScroll(true);