I have a GWT application in which I'd like to use a PopupPanel to display a lot of information. I would like toe PopupPanel to take the rest of the screen (plus some padding), and for its contents to be scrollable.
If the amount of materials in the popup panel exceeds the space on the screen, the contents of the popup panel grow out of bounds, without scrollbars, and instead the primary windows' size increases (with scrollbars) to provide enough space for the popup.
My understanding is that the size of the PopupPanel depends on its contents.
What, then, is the simplest way to achieve this?
I have thought about placing a scrollpanel inside the PopupPanel, and settings its size to the available space at the time the popup is shown, but that seems like a hack.