# coding: utf-8
import ui
v=ui.load_view('ScriptUIBehaviorTest')
outText=('*'*5000 + '\n') * 3
v['scrollview1'].border_width=3
v['scrollview1'].height=378
v['scrollview1'].width=378
tView = v['scrollview1']['textview1']
tView.text = outText
tView.width=10000
v.present()
I created a scrollview with a textview inside in the UI editor.
Rather than the text in the TextView extending past the scrollview borders and being able to scroll sideways, it simply wraps around at the borders of the scrollview.