http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/Widget.html#isAttached()

On 27 mai, 08:00, Tapas Adhikary <[email protected]> wrote:
> Hi mmoossen,
> Thanks for the reply. If u can explain it little more , it will be  a great
> help. I didn't get this part of your mail ,
>
> >> our widget is attached to the doc when calling that method, *AND*
> >> that it is also visible!
>
> What do I need to check exactly ?
>
> Thanks,
> -tapas
>
> On Tue, May 25, 2010 at 5:43 PM, mmoossen <[email protected]> wrote:
> > 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 <[email protected]> wrote:
> > > Hi all,,
>
> > > Can anybody give any clue on this ?
>
> > > On Mon, May 24, 2010 at 1:05 PM, Tapas Adhikary <[email protected]>
> > 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 [email protected]
> > .
> > > To unsubscribe from this group, send email to
> > [email protected]<google-web-toolkit%[email protected]>
> > .
> > > 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 [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-web-toolkit%[email protected]>
> > .
> > For more options, visit this group at
> >http://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 [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