This is a repost of the exact bug here: https://www.scirra.com/forum/bug-with-textbox-in-ios-with-capx-thanks-in-adance_t103632
After opening the iOS keyboard by touching a textbox in the C2 project, and then closing it, Construct 2 does not reposition the game correctly. On the google chrome app for iOS. this does not happen.
This only seems to be happening on certain devices. I have confirmed the bug occurs on: Iphone 5s, and iphone 7 plus. But it does not seem to occur on iphone 6 & 7.
Attach a Capx
Description of Capx
A minimal test case.
The layout parallax is also set to 0,0.
Steps to Reproduce Bug
Tap on textbox in Safari on iOS then close the keyboard.
The window remains pushed up, with black space below it.
The game would preposition itself like it does on iOS chrome.
Construct 2 Version ID
You can also test the export here:
Screenshots of the issue:
The default view
The view after closing the keyboard (notice how it stays shifted up)
And continues being shifted to the next layout.
If this bug can't be fixed quickly, does anyone know potential work arounds?
If anyone else is having this issue, here's a work-around:
It's not perfect because there is no way to detect when text input on mobile is finished so you have to either wait until the next layout or do it on text changed, which make the keyboard cover up the textbox.