I have made it non-positioned and attached to a non-body parent element
using following dirty workaround which I'm not sure is cross browser:
PopupPanel popup = new PopupPanel(true) ;
addCloseHandler(new CloseHandler<PopupPanel>() {
@Override
public void onClose(CloseEvent<PopupPanel> event) {
popup.removeFromParent();
}
});
popup.show();
Element popupElement = popup.getElement();
popupElement.removeFromParent();
popupElement.getStyle().clearProperty("left");
popupElement.getStyle().clearProperty("top");
Element newParent = DOM.getElementById("new-parent-id");
newParent.appendChild(popupElement);
--
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.