2 Replies Latest reply on Sep 22, 2010 11:05 AM by jfb00

    Find browser height size

    jfb00 Level 3

      Hi All,

      I have an issue with pc's that have lower resolution when I call a popup window.

      It's a way to find the height of the browser? If the size or resolucion is small than my popup window I need to reduce the size and show vertical scroll bar.

      Any ideas?

      Thanks

       

      Johnny

        • 1. Re: Find browser height size
          Devtron Level 3

          I have the same problem. When my app is displayed on lower resolutions, some of the application content is chopped off in the browser.

           

          I need to figure out how to resize my application, based on display/output/resolution.

          • 2. Re: Find browser height size
            jfb00 Level 3

            Got it...

            In you popup windows place:

            height="100%" verticalScrollPolicy="auto" initialize="init()"

             

            set the height with:

            public function init():void{
                            this.height = this.parentApplication.height - 10;
                        }

            When you call the popup window use this.parentDocument as DisplayObject like:

            PopUpManager.createPopUp(this.parentDocument as DisplayObject,myWindow, true)

             

            Johnny