You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/01/18 12:34:12 UTC
[GitHub] [cordova-ios] Skaaala opened a new issue #768: iOS 13 - Keyboard
moving
Skaaala opened a new issue #768: iOS 13 - Keyboard moving
URL: https://github.com/apache/cordova-ios/issues/768
Hello everybody
# Bug Report
Focus input while page is already focused on another cause whole view moving up and down on iOS 13.
## Problem
After few tests, I'm facing the issue with focusing programatically inputs in Cordova iOS application. When application is focused on input, it shows keyboard and when is called focus of next input like nextInputElement.focus() it moves to next input but whole view moves down and up. I think that problem is with Keyboard, which makes view resizing and when I call focus of next input it makes on background hiding Keyboard and after that showing again. This is not happening on iOS 12, but only on iOS 13.
I recorded short video which shows what I'm talking about:
https://youtu.be/JPWXwymjx_4
### What is expected to happen?
When focus on next element, Keyboard could be freezed (still opened) and whole view shouldn't move up and down
### What does actually happen?
When focus on next element, whole view moves down and up.
## Information
<!-- Include all relevant information that might help understand and reproduce the problem -->
Create a new cordova project.
Add the iOS platform.
Add 2 inputs to one row.
When you are focused on first, call .focus() on second (from source code)
You will see that screen moves up and down
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
html:
`
<input id="first"/>
<input id="second"/>
`
when you are focused on "first" element, call .focus() on "second" like:
javascript:
`
document.getElementById('#second').focus();
`
### Environment, Platform, Device
Problem occurs on iOS only (iOS > 13).
Tested with different phones on different versions.
Not working on these devices:
iPhone 11 Pro iOS 13.3
iPhone 8 Plus iOS 13.3
iPhone 8 iOS 13.3
Correctly works on these devices:
iPhone 6 iOS 12.4.4
### Version information
Cordova CLI: 8.1.1 (cordova-lib@8.1.1)
Cordova Platform iOS: 4.5.5
Xcode: Version 11.3.1 (11C504)
Operating System: macOS Catalina version 10.15.2 (19C57)
Other frameworks: Angular 7
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [ ] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [ ] I included all the necessary information above
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-ios] Skaaala edited a comment on issue #768: iOS 13 -
Focus on next input element makes view moving up and down
Posted by GitBox <gi...@apache.org>.
Skaaala edited a comment on issue #768: iOS 13 - Focus on next input element makes view moving up and down
URL: https://github.com/apache/cordova-ios/issues/768#issuecomment-598641964
@tryhardest I am using native Keyboard (without any plugin), i try to experiment with Cordova Keyboard plugin but it doesn't help. I don't use status header plugin. I think that events are the same, interesting is that iOS 12 didn't do that. I'm still wondering what is changed in iOS 13 keyboard implementation.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-ios] brodybits commented on issue #768: iOS 13 - Focus on
next input element makes view moving up and down
Posted by GitBox <gi...@apache.org>.
brodybits commented on issue #768: iOS 13 - Focus on next input element makes view moving up and down
URL: https://github.com/apache/cordova-ios/issues/768#issuecomment-587732778
I just added the **help wanted** label, my apologies for lack of response so far.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-ios] tryhardest commented on issue #768: iOS 13 - Focus on
next input element makes view moving up and down
Posted by GitBox <gi...@apache.org>.
tryhardest commented on issue #768: iOS 13 - Focus on next input element makes view moving up and down
URL: https://github.com/apache/cordova-ios/issues/768#issuecomment-598617375
Because of the height of shift I wonder, do you have status header plugin?
When we return from native view (camera or media capture plugin) our whole UI temp drops ~10 pixels just about the height of the status bar header.
Wondering if using native KB does same between focus events. Are you using Ionic or Brodybits KB?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[GitHub] [cordova-ios] Skaaala commented on issue #768: iOS 13 - Focus on
next input element makes view moving up and down
Posted by GitBox <gi...@apache.org>.
Skaaala commented on issue #768: iOS 13 - Focus on next input element makes view moving up and down
URL: https://github.com/apache/cordova-ios/issues/768#issuecomment-598641964
@tryhardest what you mean as "KB"?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org