0E322070
0E322070

Reputation: 762

GWT PopupPanel from iframe

I have a GWT Gadget which is hosted inside an iframe (as a Google Gadget).

I would like to open a GWT PopupPanel from within the Gadget, but which is centered on the entire browser window and not just the iframe. Is this possible?

Upvotes: 0

Views: 630

Answers (1)

Colin Alworth
Colin Alworth

Reputation: 18331

Not unless you can get the iframe to get a little bigger. An iframe is a window, as far the code running in it is concerned, so your code can only measure the total height/width of the iframe, and can't draw outside of that window.

One possible exception could be opening a new window with Window.open(...), but then you'd need to load something else there, a new page.

Upvotes: 1

Related Questions