Skip to main content
Devarai
Known Participant
September 12, 2015
Question

TextField.getCharBoundaries()

  • September 12, 2015
  • 1 reply
  • 328 views

Hello,

I just noticed using AIR iOS 18 (Build 199) if I call getCharBoundaries on a TextField the behavior of this method has changed.

"getCharBoundaries" does not give a rectangle object anymore where a char position is given in pixels. The resulting rect.x has now to be multiplied with the font size to get the correct results. This messes up all of my apps.

Is this behavior wanted?

Best,

Henning

This topic has been closed for replies.

1 reply

tdwivedi
Adobe Employee
Adobe Employee
September 24, 2015

Hi Henning,

I have tried reproducing this issue with a sample project created at my end, with both latest AIR sdk 19, and AIR sdk 13. But it seems to be working as expected.

Can you provide below additional information ?
.
1. Which version did you use earlier, where you were getting different behavior ?

2. What is the change in behavior that you are noticing ?

3. I am also providing the sample project that I used to reproduce the issue, please go through it, to see if it includes your use case. And if not, kindly modify it, or provide your own sample project that demonstrates your problem.

Dropbox - getCharBoundaries_m_7956572.zip

-Tushar,

Adobe AIR Team