You don't “add a PopupPanel
to a panel”. If you do that, then you're treating it like it's a SimplePanel
, and it behaves almost like a SimplePanel
; so yes setPopupPosition
won't work, at least without some additional CSS applied.
If you want to show a PopupPanel
relative to another element, use setPopupPositionAndShow
and compute the position relative to the other element's absolute position.