Asfand Yar Qazi
unread,Jul 21, 2010, 6:24:52 AM7/21/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Hello guys,
This is ONLY RELEVANT TO GOOGLE CHROME.
I've been googling for this for a while now, so excuse me if it is a
known issue, but I could not find the answer.
I have this code inside an entry point class.....
Panel createScrollableStuff() {
VerticalPanel vp = new VerticalPanel();
for(int i = 0; i != 100; ++i) {
HorizontalPanel hp = new HorizontalPanel();
hp.add(new Label("Hello"));
hp.add(new Button("Click me"));
vp.add(hp);
}
ScrollPanel sp = new ScrollPanel(vp);
sp.setHeight("30em");
sp.setWidth("30em");
return sp;
}
public void onModuleLoad() {
RootPanel.get("rootPanel").add(createScrollableStuff());
DialogBox db = new DialogBox(true, true);
db.setGlassEnabled(true);
db.add(createScrollableStuff());
db.center();
}
It creates a list of widgets inside a scrolling list, both in a dialog
box, and directly on the page itself.
Now, if I hover my mouse over a button and scroll, the list will
scroll on the page, but NOT in the dialog box... what's going on?
Thanks