0 Replies Latest reply on May 28, 2009 4:51 PM by penugonda

    Problem with minimize and maximize of the AIR WIndow

    penugonda

      If I execute the below code I will get an window with 100 buttons. With vertical scrolling on.

       

      If I bring the vertical scroll down say positioned at some button. Minimize it using minimize button and maxmize it . The vertical scroll position is resetting to the top.

       

      I am not able to figureout how to resolve this issue. I appreciate any help in this regard.

       

      Regards,

      Penugondac

       

      <?xml version="1.0" encoding="utf-8"?>

      <mx:WindowedApplication

       

       

      xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="init()"

      >

       

       

       

      <mx:Script>

      <![CDATA[

       

       

      import

      mx.controls.Button;

       

       

       

      public function init():

      void

      {

       

       

      for(var

      i:int =0; i< 100; i++)

      {

       

       

      var button:Button = new

      Button();

      button.width=50;

      button.height=50;

      vbox.addChild(button);

      }

      }

      ]]>

       

       

      </mx:Script>

       

       

      <mx:VBox id="vbox"

      />

       

      </mx:WindowedApplication>