[CHROME] DialogBox seems to interfere with scrolling a ScrollPanel when mouse is over a widget...

42 views
Skip to first unread message

Asfand Yar Qazi

unread,
Jul 21, 2010, 6:24:52 AM7/21/10
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

Asfand Yar Qazi

unread,
Jul 23, 2010, 9:59:05 AM7/23/10
to Google Web Toolkit
Sorry to bump this, but nobody knows anything about this? There must
be something obvious I'm missing.....

dane.molotok

unread,
Jul 23, 2010, 11:37:49 AM7/23/10
to Google Web Toolkit
My understanding is that the scroll wheel is like anything else, and
only applies to what has focus. So even though your dialog box is
open, it somehow doesn't have focus yet. I would start with using
DialogBox#setModal(boolean) to see if that helps.

Asfand Yar Qazi

unread,
Jul 24, 2010, 8:51:33 AM7/24/10
to Google Web Toolkit
Thanks.

My dialog box is, as you can see from the code, already set modal.
Reply all
Reply to author
Forward
0 new messages