Flex 3 custom components positioning – popups

actionscript-3apache-flexflex3popup

I have created a custom TitleWindow whcih i use as a popup. The contents of the popup are created dynamically depending on a selection a user makes from a datagrid.

My problem is, my datagrid is in another custom component whcih is toward the bottom of my page so when a user clicks one of the items the popup is displayed however with half of it out of sight at the bottom of the page.

Is there a way to position a popup so that it displays at the top of the page?

Best Answer

I know at least two things you can use to position a popup, though there might be more.

When you place a popup you can choose in which parent component to place the popup:

PopUpManager.createPopUp(this.parent, TitleWindowComponent);

In the component itself:

PopUpManager.centerPopUp(this);
Related Topic