Hi tapas!

that is most likely a timing issue. what i mean is that you have to
check that:
- your widget is attached to the doc when calling that method, *AND*
- that it is also visible!

HTH
Michael

On May 25, 7:09 am, Tapas Adhikary <tapas4...@gmail.com> wrote:
> Hi all,,
>
> Can anybody give any clue on this ?
>
>
>
> On Mon, May 24, 2010 at 1:05 PM, Tapas Adhikary <tapas4...@gmail.com> wrote:
> > I am using GWT 2.0 . In my application , I am using a logic to
> > randomly/correctly position the pop-up when I click an anchor link. I am
> > setting the position of the popup using the UiObject's OffsetWidth and
> > OffsetHeight property.
>
> > I am calling ,
>
> > popupPanel.setPopupPositionAndShow( new PopupPanel.PositionCallback()
> > {
> > public void setPosition(
> >  int iOffsetWidth,
> > int iOffsetHeight)
> >  {
> >                                // Some code
> >                         }
> >                }
> > The position callback happens from the PopupPanel.java which in turn gets
> > the offsetHeight and offset width from the UIObject's
> >  public int getOffsetWidth() {
> >     return DOM.getElementPropertyInt(getElement(), "offsetWidth");
> >   }
>
> > The problem happens when I click on one specific anchor link. The pop-up
> > width is returned correctly in mozilla but in IE it gives me a huge
> > value(only for this anchor link, for all the other anchors it gives back the
> > proper width).
>
> > Is the width of the anchor responsible for this as it only happening for a
> > particular link and on IE?
> > Is it a kind of known issue that I am not aware of ?
>
> > Thanks in advance.
>
> > -Tapas
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to