Hi Sachin,
sachin vijayvargia wrote:
1) Problem with edittext is that the vertical scrollbar does come if
the data exceeds the edittext height.Hence user gets confused.
2) We have taken a code from developer forum, though the scrollbar
actually appears , it is with respect to an encapsulating view (which
hold the edit text within it). Hence, if the data exceeds the size of
edittext, the scrollbar appears but the cursor in the edittext does
not move down to be able to see the current text.
We are urgently looking for a edittext code wihich has the scrollbar
enabled and works as good as a "textarea" in HTML
One thing you could do is to add a "onheight" (IIRC - I haven't used OL
for quite a while) and then use that to change the relative x-position
of the view containing the text, thereby moving it up to the point where
the cursor is visible.
Also, you could use a constraint in the views (text field) "x"
attribute. I think something like:
x="${this.x=-(this.height-this.parent.height)}"
Not sure about this as I've been away from OpenLaszlo for about a year
so correct me if I'm wrong anyone?
HTH,
Adeola.