Skip to main content
Inspiring
Apr 16, 2012 11:44 AM UTC
Answered

Reset stage view-port after soft keyboard? Bug? (iOS)

AIR 3.2, iPad 3.

Some illustrative pics:

1. Tap the input text field in the middle.

2. The soft keyboard pushes up the stage, so the text field is into view.

3. When you are done, the stage should be like in the beginnings, but it's scrolled down

Well, this seems like a bug (?) and I'd be interested in a workaround if you know of any 😉

Thanks in advance!

This topic is closed to new replies. Start a new post to keep the conversation going.
michal_twomstudioCorrect answer
Participating Frequently
May 4, 2012 11:37 PM UTC

you can use <softKeyboardBehavior>none</softKeyboardBehavior> setting in your xml description file.

none - will not move the application

pan - will move the application up

http://help.adobe.com/en_US/air/build/WSfffb011ac560372f2fea1812938a6e463-8000.html#WSfffb011ac560372f1a6f6f1912d7748050e-7fff

4 replies

julifosAuthor
Inspiring
May 5, 2012 12:15 AM UTC

Yes, I finally used <softKeyboardBehavior>none</softKeyboardBehavior> and making my own panning, kind of:

-on soft-keyboard-raised

-move stage where tapped textfield is visible

-on soft-keyboard-closed

-move stage to y=0

Getting input textfields to work consistently in Flash has been allways a PITA (I allways remember the well-known bug FP-40 and its many variants), but getting the iOS soft-keyboard into stage makes things much more funny

For my needs, if you wanna know, I finally sticked using a out-of-view StageText (which is the only one receiving "some" KEY_UP events) and a dynamic textfield with a fake blinking cursor to let the user know what's going on while he's typing (appart from panning myself).

Translate
Participant
Apr 30, 2012 7:49 PM UTC

Hi, have you find the solution for this issue? I have the same problem, and can't find how to fix it

Thank you!

Translate
Inspiring
May 1, 2012 12:01 AM UTC

A similar issue happened to me recently. Only instead of the keyboard, it happened with the menu bar after playing with the native video player (called through a stageWebView) on an iPhone. My app's screen was "pushed down" by the menu bar after accessing the video controls in the iOS app-switcher bar (double-tap home button and swipe all the way to the left).

It was a rather remote circumstance involving a video being "AirPlay-ed" in the background, but I do suspect a related issue going on here with AIR (3.2) not playing well with native iOS controls.

Translate
michal_twomstudioCorrect answer
Participating Frequently
May 4, 2012 11:37 PM UTC

you can use <softKeyboardBehavior>none</softKeyboardBehavior> setting in your xml description file.

none - will not move the application

pan - will move the application up

http://help.adobe.com/en_US/air/build/WSfffb011ac560372f2fea1812938a6e463-8000.html#WSfffb011ac560372f1a6f6f1912d7748050e-7fff

Translate