问题
I'm testing simple TextInput functionality in flex 4.6 + air 3.2 mobile application and observing strange artifacts when soft keyboard resizes the view. Here is appearance: before soft keyboard is popped out and after. As you can see Flex has resized the view so that soft kb would with with the TextInput visible. But this is causing erasures artifacts in all TextInputs! Is this a bug? Where in Flex or AIR? Any suggestions how to fix this? Thanks!
回答1:
By default, Flex 4.6 uses StageText in it's mobile TextInput skins. StageText does not render correctly when scrolled.
Use the Flex 4.5 mobile TextInput skin:
<s:TextInput skinClass="spark.skins.mobile.TextInputSkin"/>
回答2:
Upgrading to 3.3 should resolve this issue
http://blogs.adobe.com/flashplayer/2012/06/introducing-air-3-3-and-flash-player-11-3.html
回答3:
We might have a solution to this: http://blog.flexicious.com/post/Scrolling-Issues-With-TextInput-for-Flex-Air-Mobile-Native-StageText.aspx It works for our scenarios, and should for most others.
来源:https://stackoverflow.com/questions/10958027/flex-4-6-air-3-2-textinput-artifacts