I'd like to set the position of my PopupPanel relative to the Panel I'm adding it to. However, the position I set with
popupPanel.setPopupPosition(750,230);
is ignored.
Is the method position overwritten when adding it to a panel?
I'd like to set the position of my PopupPanel relative to the Panel I'm adding it to. However, the position I set with
popupPanel.setPopupPosition(750,230);
is ignored.
Is the method position overwritten when adding it to a panel?
Copyright © 2021 Jogjafile Inc.
You don't “add a
PopupPanelto a panel”. If you do that, then you're treating it like it's aSimplePanel, and it behaves almost like aSimplePanel; so yessetPopupPositionwon't work, at least without some additional CSS applied.If you want to show a
PopupPanelrelative to another element, usesetPopupPositionAndShowand compute the position relative to the other element's absolute position.