Thanks for your input. My problem still is not solved.
Adding the recommended code forces the glass to be removed. So, I am now able to see that the DialogBox can not be moved by the normal Caption mouse handlers. Also, my Window handlers still do not work. On the + side, the glass panel is now gone, allowing me to close the DialogBox VIA the Button that I added to hide it, allowing the user to continue his/her work if this happens. I don't understand why GWT is reporting the DialogBox as isShowing() = false and isAttached() = false when the DialogBox is clearly showing and considering it is showing it must be attached... I'm assuming the hide and show events are colliding and the DialogBox is not being completely reattached. Any other ideas? Thanks, Pat On Mar 11, 2:33 pm, mmoossen <[email protected]> wrote: > 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- Hide quoted text - > > - Show quoted text - -- 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.
