1 Reply Latest reply on Dec 4, 2009 6:34 AM by Gregory Lafrance

    TitleWindow resize

    LacioDrom

      Hi everyone,

       

      I'm using a TitleWindow and I'd like that it automatically resized itself when I resize the browser. What TitleWindow's property should I set?

       

      Thanks a lot !!!

      Greetings

        • 1. Re: TitleWindow resize
          Gregory Lafrance Level 6

          As long as it is not being used as a popup, just use percentages for the width and height:

           

           

          <?xml version="1.0" encoding="utf-8"?>
          <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
            <mx:TitleWindow width="50%" backgroundColor="0xFFFFFF" height="50%"/>
          </mx:Application>

           

          If it is a popup, then refer to the app width and height:

           

          mx.core.Application.application.width

          mx.core.Application.application.height

           

          If this post answers your question or helps, please mark it as such.


          Greg Lafrance
          www.ChikaraDev.com

          Flex Development and Support Services

          1 person found this helpful