I ust run some tests and noticed the following in Chrome (in FF 12 they all return true):
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?
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)
- Ed