Select to view content in your preferred language

Control a Pop up windwow's position possible?

700
3
06-29-2011 07:51 AM
LeiZhou
Deactivated User
I create a pop up windown, now it is PopUpManager.centerPopUp(myTable);

I would like this windown always stay at a fixed position, such as always at the top or left, is there any way that I can do that? It seems PopUpManager does not have that property.


I also add lef="10" inside the pop up windown component, but it does not work. Thanks!
Tags (2)
0 Kudos
3 Replies
BrendanLee
Emerging Contributor
You can set the pop up's x and y.

pop1 = myPopUp(PopUpManager.createPopUp(this, myPopUp, false, PopUpManagerChildList.POPUP));
pop1.x=80;
pop1.y=300;
0 Kudos
LeiZhou
Deactivated User
Thanks a lot! I created an instance of pop-up window, and use this instance to set x and y value.

You can set the pop up's x and y.

pop1 = myPopUp(PopUpManager.createPopUp(this, myPopUp, false, PopUpManagerChildList.POPUP));
pop1.x=80;
pop1.y=300;
0 Kudos
YungKaiChin
Regular Contributor
Also, by setting the isPopUp property to false, the users won't be able to drag the window if it is what you want.
0 Kudos