.controller('DashCtrl', function($scope) {
$scope.$on('$ionicView.enter', function() {
//makes the content go under header
document.querySelector('.search').focus();
//works only on Android and WP.
cordova.plugins.Keyboard.show();
});
})
run with livereload (bug present in both livereload and no livereload)
start editing controllers.js and save (app livereload kicks in)
watch keyboard open, close keyboard by pressing outside the keyboard on empty space, select manually the input (input goes under the header) also the scroll has height 0;
visualization:
workaround:
Add a timeout of minimum 1035 or 1040 and everything is fine.
Any ideas?
Only happens on iOS. Android has no issue with this code.
UPDATE:
In the app that I am working with it seems that if the page with the input is on a secondary page (not main page) the bug is not present.
steps:
<preference name="KeyboardDisplayRequiresUserAction" value="false"/>
inconfig.xml
visualization:
workaround: Add a timeout of minimum 1035 or 1040 and everything is fine.
Any ideas?
Only happens on iOS. Android has no issue with this code.
UPDATE: In the app that I am working with it seems that if the page with the input is on a secondary page (not main page) the bug is not present.