I am trying to extend a TextInput component to resize itself as the user types. I have overridden the "measure" function to calculate the size correctly, and then I created a "handleChange" function which calls "invalidateSize()" and recalculates the size as the user types.

Here is the problem: horizontalScrollPosition

When the user types the text is automatically scolled to the left a little bit which makes the first character unreadable. I am assuming this is because the scroll position is getting calculated before the new width is set and thus it is seeing that the bounding box is too small. However, I can't seem to find out where this calculation occurs and how to force it to calculate using the updated width.

Any ideas?  Has anyone creating something like this that I can look at?

Thanks, Kevin

Reply via email to