[Laszlo-user] ensureItemInView Issue

gaurav gp at pagux.com
Mon Jun 11 06:07:38 PDT 2007


Hi List,
Its must be really easy for but i having tough time figuring this out , I
need a pointer to move ahead ....i have completed my app but I am stuck at
this point ....pl help me ...I really want to add my application to list of
live application at laszlo website :-)

I have made a list where I am adding new items dynamically
listDisplay.addItem(txt.getText(), txt.getText());

Problem is when no items overflow view last item added remains hidden till I
scroll it down
but I want the latest item added to the list to displayed to user ...so
scrollbar should automatically go down ...and last entry should to be
selected .I tried this but i has no effect .....I am not sure if i made some
mistake
listDisplay.ensureItemInView(txt.getText())

Regards,
Gp

On 6/8/07, gaurav <gp at pagux.com> wrote:
>
> Hi fellow LaszloHeads,
> I have made a list where I am adding new items dynamically
> listDisplay.addItem(txt.getText(), txt.getText());
>
> Problem is when no items overflow view last item added remains hidden till
> I scroll it down
> but I want the latest item added to the list to displayed to user ...so
> scrollbar should automatically go down ...and last entry should to be
> selected .I tried this but i has no effect .....I am not sure if i made some
> mistake
> listDisplay.ensureItemInView(txt.getText())
>
>
> pl suggest
>
>
> Regards,
> Gp
> --
> **********************************************************
>
>                www.PaGux.com
>              Innovation Starts Here.
>
> new blog.pagux.com ....get to know Whats Cooking ?
> *******************************************************




-- 
**********************************************************

               www.PaGux.com
             Innovation Starts Here.

new blog.pagux.com ....get to know Whats Cooking ?
*******************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070611/e4e02b67/attachment.html


More information about the Laszlo-user mailing list