feathersui / feathersui-starling

User interface components for Starling Framework and Adobe AIR
https://feathersui.com/learn/as3-starling/
Other
915 stars 386 forks source link

RTL support for StageTextTextEditor #469

Open shvilam opened 11 years ago

shvilam commented 11 years ago

I am trying to use RTL support for TextInput the problem that I am facing that the cursor is always at the begging of the TextInput I did try to set textAlign like this in the theme file input.textEditorProperties.textAlign = TextFormatAlign.END; But it did help What I am trying to figure out is from where is the cursor that is being displayed in the TextInput it doesn't look like a stage text cursor and if so how can I change that cursor And place it at the end of the text not the begging Thanks Amit Shvil

joshtynjala commented 11 years ago

There is no custom cursor built on top of StageText in TextInput. The only thing that's different than a raw StageText in StageTextTextEditor that may be an issue with RTL text is the invisible TextField I use to determine which characters the cursor should be placed between when the user taps on the TextInput. It may be that the TextField renders the text differently than StageText if it's RTL.

shvilam commented 11 years ago

So if you are Using the TextField to determine which characters the cursor should be placed I could use replace it with TLFTextField make change the text to flow from right to left Could this solve the cursor problem? Any thous leads or idea will be appropriated. the reason to use TLFTextField instead of TextField is that TextField does not support RTL only

joshtynjala commented 11 years ago

Yes, that might work. I think that's a good place to start.