Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/12/2008, 16:12
Pitillos
 
Fecha de Ingreso: diciembre-2008
Ubicación: Córdoba
Mensajes: 59
Antigüedad: 15 años, 4 meses
Puntos: 0
Respuesta: Maximizar un panel que contiene un LineChart

Hola


He estado haciendo pruebas:
Código actionscript:
Ver original
  1. private function maximize(thePanel:Panel, minRestorBtn:Button):void
  2.             {
  3.                 if(!isMaximized)
  4.                 {
  5.                     // Save previous position info
  6.                     currWidth = thePanel.width;
  7.                     currHeight = thePanel.height;
  8.                     currTop = thePanel.y;
  9.                     currLeft = thePanel.x;
  10.                     currIndex = thePanel.parentApplication.getChildIndex(thePanel);
  11.  
  12.                     // Set the maximized flag to true
  13.                     isMaximized = true;
  14.  
  15.                     // Set current info
  16.                     thePanel.width=this.width;
  17.                     thePanel.height = this.height;
  18.                     thePanel.x = 0;
  19.                     thePanel.y = 0;
  20.  
  21.                     var parentApp:UIComponent = thePanel.parentApplication as UIComponent;
  22.                     parentApp.removeChildAt(currIndex);
  23.                     parentApp.addChild(thePanel);
  24. //estas son las dos lineas que he cambiado
  25.                     thePanel.getChildByName("a").width=thePanel.width-currWidth;
  26.                     thePanel.getChildByName("a").height=thePanel.height-currHeight;
  27.                     // Set the button properties
  28.                     minRestorBtn.label = _RESTORE_LABEL_;
  29.                 }
  30.             }
y con esto casi funciona, mira a ver si lo terminas xD, pero si lo haces por lo menos compartelo.

PD la "a" es el id de tu grafico