Anshuman Jaiswal
Anshuman Jaiswal

Reputation: 5462

how to fit the pop up in application

I am opening a pop up within a application and problem is that this popup window is not opening correctly when i want to open popup at the end of the application that means popup height decreases and some data truncated in popup window .I am using canvas for pop up.

Upvotes: 1

Views: 145

Answers (2)

kbgn
kbgn

Reputation: 856

You can position the popup using Point Object.Set the titlewindow's width and height to fit the contents.

            var titleWin:FileUpload=PopUpManager.createPopUp(this, PopupName, true) as FileUpload;
            var point:Point=new Point(0, 0);

            point=this.parentDocument.parent.localToGlobal(point);
            titleWin.x=point.x + 100;
            titleWin.y=point.y + 100;
            titleWin.width=500;
            titleWin.height=400; 

Refer this link to read about Point object.

Upvotes: 1

drkstr
drkstr

Reputation: 609

You would use the PopUpManager.centerPopUp() function.

Upvotes: 0

Related Questions