Reputation: 762
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
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