Hi, patrick!

i think your problem is just this bug:
http://code.google.com/p/google-web-toolkit/issues/detail?id=4720&can=4

i had a very similar setup and using the recommended patch did solve
all my problems.

HTH
Michael

On Mar 11, 6:37 pm, Patrick Tucker <[email protected]> wrote:
> I have extended GWT's DialogBox in an attempt to make it capable of
> staying centered in the browser window.
>
> I added the following code to the show method:
>
>    super.show();
>
>    if (rReg == null)      rReg = Window.addResizeHandler(this);
>    if (sReg == null)      sReg = Window.addWindowScrollHandler(this);
>
> and the following code to the respective handler methods:
>    if (this.isShowing())      this.center();
>
> In most cases this works fine.  But I recently ran across a case where
> this breaks.  One of the applications that I use this DialogBox in has
> to show and hide the instance of the DialogBox dependant upon server
> side events.
>
> If the hide/show events are to close together the DialogBox gets lost
> and does weird stuff.  It will get pushed to the bottom of the screen,
> and underneath the Glass panel.  The DialogBox is visible to the user
> but can not be moved or anything because the Glass panel is now
> covering it.  The handlers not longer work because GWT is reporting
> that it is not showing and worse off it reports that the DialogBox is
> not even attached.
>
> I have tried moving the registration into the constructor and to
> various other methods: onAttach, onLoad,... and had no luck fixing
> this issue.  I have also tried removing the registration and setting
> it to null in a few different methods:  hide, onDetach, onUnload...
> and still no luck.
>
> Has anyone run across this??  Is there a better way to do what I am
> trying to do?
>
> Thanks,
> Pat

-- 
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.

Reply via email to