You shouldn't need to override any methods just to add scrollbars. Im curious as to why you want to do that. You should be able to just nest the panels, as you have done.
-Ben On Mar 29, 12:40 am, Olivier Diotte <[email protected]> wrote: > Hi, > > I am new to GWT (and not that expert in Java) and I have a problem I > haven't been able to solve. > > Here's my problem: > > I want to do a panel (say a VerticalPanel) but also want it to have > scroll bars. So, what I did was to nest a VerticalPanel in a > ScrollPanel and then overrode the latter's iterator() with a call to > the former's iterator. > > Attached is a (relatively) small test code showing the problem: > > With the overriding iterator() in place, the SelectedItemsListPanel's > ClickHandler() doesn't get called. Comment the iterator() out and > everything works perfectly. > > Regards, > -- > Olivier Diotte > > olivier.java > 1KViewDownload > > ItemElement.java > 2KViewDownload > > ItemSelector.java > 2KViewDownload > > ItemsListPanel.java > 3KViewDownload > > SelectedItemElement.java > < 1KViewDownload > > SelectedItemsListPanel.java > 3KViewDownload -- 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.
