Thanks Thomas.
Hmm. It seems I missed something that was kept decorated on the
plate ;-)
Well, I am not in the office right now, so can't test this method
till monday. Anyhow, I will be extremely grateful, if you could answer
this query (because I need to be in office to test the center method
in the first place) :
Does center() method, does show the popup in the centre of viewport,
and not with respect to the entire browser window(as is the
discrepancy in case of presence of vertical scrollbars) ?
Will appreciate if i get a reply; anyhow thanks for leading me so far.
Ajay Garg
On Sep 20, 5:26 am, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> 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()?- 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
-~----------~----~----~----~------~----~------~--~---