Thursday, July 19, 2012

Re: Document.get().isOrHasChild(element) != isAttached() in CHrome ??

On 07/19/2012 02:51 AM, Ed Bras wrote:
> I ust run some tests and noticed the following in Chrome (in FF 12 they
> all return true):

Well, that's annoying...

> 1) Document.get().isOrHasChild(element) -> false
> 2) Document.get().getDocumentElement().isOrHasChild(element) -> true
> 3) Document.get().getBody().isOrHasChild(element) -> true
> 4) widget.isAttache() -> true
>
> Appearantly there is a difference between being attached to the Document
> node and Body node.
> Why?
> What to do next to isolate/solve this?

What problem is it you're trying to solve? That's going to dictate the
solution.

> Note: the above statements are called in a DeferedCommand just after the
> widget is added to the RootPanel. It concers an widget that is shown as
> a popup panel (absolute positioned)

Maybe a clickHandler(), but again, what problem is it you're trying to
solve?

Cheers,
jec

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate