Reputation: 31
I am building a tablet application which contains a login form. I am using soft keyboard to enter credentials and I am doing 'stage.focus=null' to hide softkeyboard, after this if I open a popup it is coming in half of the screen.
Upvotes: 2
Views: 764
Reputation: 111
The way we fixed this problem was to fire our own deactivate event on our TextInput.
callLater(function():void {
myTextInput.dispatchEvent(new SoftKeyboardEvent(SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE, true, false, null, "contentTriggered"));
});
Upvotes: 0
Reputation: 380
This post here gave me some hints http://forums.adobe.com/message/4068144 but didn't fix my problem. What finally worked for me was 'forcing' the keyboard to close by resetting the focus and deferring my state change until afterwards.
callLater(setFocus); // set focus to current view
callLater(function():void { /*.. my state change code ..*/ });
Upvotes: 0
Reputation: 31
I found solution to my problem, I resolved this after setting resizeForSoftKeyboard property to SkinnablePopUpContainer.
Thakns, Gopi.
Upvotes: 1