GWT version: 1.3.3
GWT Tk version: 0.2.2
Browsers tested: FF1.5 [Mac/Win], IE6, Opera9, Safari, Camino
Browsers affected: FF1.5 [Win]
What steps will reproduce the problem?
1. launch the GWT Tk Demo
2. resize the browser window so that scrollbars are visible
3. display a ModalDialog in the Demo
4. click and drag a viewport scrollbar
What is the expected result? What happens instead?
Expected: document scrolls when mouse is dragged
Actual: nothing happens. Scroll bar cannot be dragged.
Please provide any additional information below.
Official GWT issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=399
Workaround submitted by Adam Duston:
I have found that subclassing your dialog to be immune to this bug
is an easy task: override onEventPreview to return true if the browser
is FF and the following outOfClientRegion function returns true, given
the event param evt of onEventPreview:
public boolean outOfClientRegion(Event evt)
{
switch (DOM.eventGetType(evt))
{
case Event.ONMOUSEDOWN:
case Event.ONMOUSEUP:
case Event.ONMOUSEMOVE:
case Event.ONCLICK:
case Event.ONDBLCLICK:
return outOfClientRegionImpl(evt);
}
return false;
}
private native boolean outOfClientRegionImpl(Event evt) /*-{
target = evt.target;
return (target.nodeName === "scrollbar" || target.nodeName === "HTML");
}-*/;
TASK: does this workaround depend on GlassPanel dimensions?
Original issue reported on code.google.com by mat.ges...@gmail.com on 21 Mar 2007 at 7:55
Original issue reported on code.google.com by
mat.ges...@gmail.com
on 21 Mar 2007 at 7:55