native.newTextBox - disable horizontal scroll?

Hi,

When I set a fixed width of a native.newTextBox for word wrapping I’m still able to swipe its content with the finger to scroll it horizontally (even if the text typed is just one letter). I’d like to make it fixed. Is there any hidden .horizontalScrollDiabled(true) method that I could call on this native object? Like it is possible on a widget.newScrollView object?

Other thing is that sometimes word wrapping doesn’t wrap even though it should - it visually cuts the last one or two letters, and it wraps the word to the next line only after typing the third letter. So if the user won’t type the third letter - the latter two are cut on the right side (I guess that’s why there’s a horizontal scroll possibility…)

Any ideas how to fix it?

Thanks

bump

Did you try it on a actual device? The native.newTextBox wraps the text automatically.  That situation that you mentioned only happens on the Simulator.

Yes I did :slight_smile: In general it wraps fine, but there are moments when it doesn’t wrap the line until one more character is being typed. And the scroll inside textbox is annoying, I need to get rid of it.

What scroll? A vertical or Horizontal?

Horizontal. I have set a fixed width parameter, nevertheless the textbox content is scrollable horizontally as well

I don’t see that behavior on my textBoxes

OK, now I see what’s happening. It’s because I rotate my textBoxes. When they’re straight with no rotation angle - they can’t be scrolled horizontally. Once I set the rotation angle - I can scroll inside the textBox horizontally. I guess they weren’t supposed to be rotated but I have a special case that I need them to be like that. Damn it.

bump

Did you try it on a actual device? The native.newTextBox wraps the text automatically.  That situation that you mentioned only happens on the Simulator.

Yes I did :slight_smile: In general it wraps fine, but there are moments when it doesn’t wrap the line until one more character is being typed. And the scroll inside textbox is annoying, I need to get rid of it.

What scroll? A vertical or Horizontal?

Horizontal. I have set a fixed width parameter, nevertheless the textbox content is scrollable horizontally as well

I don’t see that behavior on my textBoxes

OK, now I see what’s happening. It’s because I rotate my textBoxes. When they’re straight with no rotation angle - they can’t be scrolled horizontally. Once I set the rotation angle - I can scroll inside the textBox horizontally. I guess they weren’t supposed to be rotated but I have a special case that I need them to be like that. Damn it.