Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
VishalHegde #1
Browser Resize/Maximize is not putting the PopUp at theCentre
Hi all,
I have a mxml screen with id=myDisplayObj.I'm using this a PopUp.and placing
this at the center using "PopUpManager.centerPopUp(myDisplayObj); ". Now i
resize my Main browser window and invoke this PopUp screen. When i Maximize the
Main Browser window, this PopUp Screen is not coming at the center of the
browser. It stays at the same place where it was when the Browser window was
resized.
Please let me know how to put the PopUp Back to the Center of the Browser when
its size is changed.
Thanks in advance
VishalHegde Guest
-
Custom control should resize when the browser is resized
Hi everyone, I have created the custom control that will display some images and one div tag in the table format. When resizing the browser I... -
popup menu position: browser inconsistencies
I am using Show/Hide Popup Menu function in Dreamweaver. I see that the position of the menu is not consistent across different browsers, as tested... -
Can you resize a PopUp?
I have a popup window with a dynamic number of InputText fields, but the overall popup doesn't resize when I add more InputText fields. If its in a... -
resize browser & swf dynamically?
I have embedded a flash swf in a table in an html page. I'd like to resize the page for larger browser windows and have the flash resize dynamically... -
Browser popup freezes while downloading
We have build a site, where at a certain point we open a popup. From this popup we push a file to the end-user. While the file is being send to... -
peterd_mm #2
Re: Browser Resize/Maximize is not putting the PopUp atthe Centre
VishalHegde,
I'd probably try adding a "resize" event listener to your <mx:Application/>
tag. In the event handler, check that the myDisplayObj is popped
up/created/visible and call "PopUpManager.centerPopUp(myDisplayObj);".
Peter
peterd_mm Guest
-
VishalHegde #3
Re: Browser Resize/Maximize is not putting the PopUp atthe Centre
Thanks for your suggestion peterd_mm ,
But, one thing is not clear for me. How can i access the reference of that
PopUpObject. In my example,at run time 'myDisplayObj' will be different
depending on which popup user want to use.
Thanks in advance.
VishalHegde Guest
-
Unregistered #4
Re: Browser Resize/Maximize is not putting the PopUp at theCentre
private function resizeApplication(evt:Event):void{
var count:int=systemManager.popUpChildren.numChildren;// fetch number of popups opened that needs to be resized with broswer
if(count!=0)
{
for (var i:Number=0;i<count;i++)
{
PopUpManager.centerPopUp(systemManager.popUpChildr en.getChildAt(i) as IFlexDisplayObject);
}
}
}
Hope it helps.. :)Unregistered Guest



Reply With Quote

