Finally I used just simple FlowPanel so I utilized the Element::scrollIntoView() approach (which works fine in IE6+7, FF3, Safari, Chrome), but i expect the ScrollPanel.ensureVisible() method will work in all the browsers as well.
Goddamn it, now we have mentioned all the straight solutions which GWT offers. Thanks. On 26 čvn, 14:27, jayalakshmi jahagirdar <jayalakshmi.jahagir...@gmail.com> wrote: > hi...if ur using scroll panel then u have an option to make the added row > visible...u can use below line of code. > > scrollPanel_1.ensureVisible(the row which has to be visible); > jayalakshmi > > On Fri, Jun 26, 2009 at 5:36 PM, romant <roman.te...@gmail.com> wrote: > > > Hi, > > I have a div which contains many other divs representing some data > > items (let's say they contain user names). The parent div has a fixed > > height, so to see all the data items(user names) inside it is > > necessary to scroll by mouse vertically. > > > The names all sorted alphabetically and I add a new user name. After > > adding it at the right position I select the item (= I set its text > > color to red) and now I need to ensure that the item will be visible, > > which means that it should not happen that it will not be visible > > because its position in the parent div will be somewhere in the > > currently invisible area and it will be necessary to scroll up or down > > to see the new added user name. > > > Is there any solution in GWT? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---