From d6e78b00f7a12b63662cea0c4df39f69629b0a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Wed, 14 Sep 2016 11:19:49 -0300 Subject: [PATCH] lock orientation when screen width < 768 --- src/js/routes.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/routes.js b/src/js/routes.js index e0d11efac..c8c928e9d 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -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);