On 19 sep, 12:28, Ajay Garg <[EMAIL PROTECTED]> wrote:
> Thanks Thomas for the reply.
>
> Your approach works on Mozilla and IE7, but behaves weird on IE6. In
> my application, I override the PopupPanel.show() method, as follows :
>
>             public void show(){
>                 setVisible(false);
>                 super.show();
>                 //following logic copied from Popup.center() to show popups in
> center of page
>                 int left = (Window.getClientWidth() - getOffsetWidth()) / 2;
>                 int top = (Window.getClientHeight() - getOffsetHeight()) / 2;
>                 setPopupPosition(Window.getScrollLeft() + left,
> Window.getScrollTop() + top);
>                 setVisible(true);
>             }

I don't understand: what's different from center()?

> As can be seen, it is required that the popup shows roughly at the
> centre of viewport. Works perfect in IE7 and Mozilla, but not in IE6.
>
> Any light in this regard ..?

Er, use center()?


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