Skip to content

Commit

Permalink
MOBILE-1849 ios: Disable keyboard scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyserver authored and dpalou committed Dec 12, 2016
1 parent 9853e5a commit a72f43b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions www/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ angular.module('mm', ['ionic', 'ngCordova', 'angular-md5', 'pascalprecht.transla
'ngMessages'])

.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
window.cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
}
if (window.StatusBar) {
StatusBar.styleDefault();
}
});
$ionicPlatform.ready(function() {
if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
window.cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
window.cordova.plugins.Keyboard.disableScroll(true);
}
if (window.StatusBar) {
StatusBar.styleDefault();
}
});
});

0 comments on commit a72f43b

Please sign in to comment.