You should check out this issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=1313
Safari and chrome misbehave when you have a FocusPanel inside a ScrollPanel. Clicking in the FocusPanel will result in it scrolling to the top. Why not use ScrollPanel.setScrollPosition()? Paul romant wrote: > Ok I have got a solution - to wrap the single items in FocusPanel and > to call setFocus(true) on the item which is supposed to be shown. > Sorry for bothering you. > > > > On 26 čvn, 14:06, romant <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
