1 Reply Latest reply on Mar 4, 2011 2:36 AM by bspShankar

    problem while minimizing a panel

    bspShankar Level 1

      Hi,

       

      I have a panel where there is html component init....which displays pdf file..

       

      <containers:Panel
                      id="myPanel"
                      title="Panel"
                      width="100%" height="100%"
                      horizontalAlign="center"
                      verticalAlign="middle"
                      resizeEffect="Resize"
                      allowDrag="true"
                      allowResize="true"
                      allowClose="true"
                      allowMaximize="true"
                      allowMinimize="true"
                      moveEffect="Move"
                      close="panelContainer.removeChild(myPanel);"
                      >
                     
                      <mx:HTML id="reader" width="100%" height="100%" y="0"
                               location="http://121.243.253.109:8080/DBStage/DBPageReference/Bare Acts/State Acts/Arunachal Pradesh/Dept. Of Co-Operative Societies/The Arunachal Pradesh Co-operative Societies Act (Amendment) Act 1989.pdf">
                      </mx:HTML>
                  </containers:Panel>

        • 1. Re: problem while minimizing a panel
          bspShankar Level 1

          cont...

           

          /**
               *  Minimize the panel.
               */
              public function minimize():void
              {
                  if (!canAnimate)
                      return;
                 
                  isMinimized = true;
                  isMaximized = false;
                 
                  /*
                   If we try to call this too soon it will mess up our first transition
                   so we'll hold off unless we have the properties set.
                  */
                  updateRestoreRect();
                 
                 
                  if (minimizeRestoreRect)
                      this.width = 200;
                  this.height = titleBar.height;
                 
                  this.move(0,650);//this.parent.height - 30 // move()
                 
                  var myEvent:SuperPanelEvent = new SuperPanelEvent(SuperPanelEvent.MINIMIZE);
                  dispatchEvent(myEvent);
              }

           

           

           

          The problem is after minimising the panel......

          Image1.png

           

          After minimizing the panel to left corner bottom also... a part of pdf window is still visible.....

           

           

          Pls guide me ..... hwy is this happening....

           

           

          Thanks & regards