Textarea in a borderlayout scrolls too far

10 views
Skip to first unread message

Gareth Murfin

unread,
Jan 12, 2020, 5:44:11 PM1/12/20
to CodenameOne Discussions
I have a textarea in the centre of a borderlayout (its parent is also centre in another borderlayout), scrolling works fine but it goes far too far, so you can make the entire screen white. How can I stop it scrolling when the user gets to the end of the text?

Shai Almog

unread,
Jan 12, 2020, 9:10:05 PM1/12/20
to CodenameOne Discussions
You can override calcScrollSize which is pretty low level. I wouldn't do that. Unfortunately there's nothing standard that implements this. Maybe you can use a WebBrowser component for this case?
Reply all
Reply to author
Forward
0 new messages