Hi,
The behavior of DialogBox seems to be different between IE (7) and
firefox.
1.
In IE7, DialogBox is simply not modal... I've tried the KitchenSink
example in IE7 and it seems to not work as well (it's not modal -
clicking is allowed on most elements).
2.
In addition, the auto-hide feature doesn't work well in IE7. It seems
that when clicking and dragging inside any textbox (which is outside
the dialog), the dialog doesn't close and becomes non-modal.
Changing line 126 in PopupPanel.java (GWT 1.2.22) from its original
content:
if (autoHide && (type == Event.ONCLICK)) {
to:
if (autoHide && (type == Event.ONCLICK || type ==
Event.ONMOUSEDOWN)) {
seems to solve it.
If you throw up a blank, full document div behind the dialog you can prevent
* elements that respond, but do not act
* transferring focus background elements in Opera
(mousedown->preventDefault() does the trick for other browsers)
And you get the added bonus of a css-stylable lightbox effect. (Hmm,
maybe you could eliminate EventPreview while you're at it....)
Of course, this behavior will be undesirable for those who want a
non-modal dialog.
--
Mat Gessel
http://www.asquare.net/gwttk/