actionscript 3 - Adobe AIR softKeyboardBehavior auto-pan -


i have adobe air mobile app many editable text fields, of partially covered soft keyboard when opens. trying take advantage of "pan" softkeyboardbehavior, causes screen automatically pan text above keyboard.

however, scrolls line of text containing cursor above keyboard. in other words, if have 7-line textfield , user taps top line, other 6 lines covered keyboard, making editing text impossible.

is there way adjust how air positions text relative keyboard when softkeyboardbehavior set "pan"?

almost after posted this, thought decent workaround:

private function onsoftkeyboardactivate(event:softkeyboardevent):void {     textfield.setselection(textfield.text.length, textfield.text.length);  } 

this forces cursor end of text that's in textfield, scroll textfield higher. if number of lines of text shorter length of textfield, adding new text bottom scroll screen make more of textfield visible.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -