lock orientation when screen width < 768
This commit is contained in:
parent
3424894a11
commit
d6e78b00f7
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue