Beispiel #1
0
 protected function onResize($oldX, $oldY)
 {
     parent::onResize($oldX, $oldY);
     $this->text->setSize($this->sizeX - 4, $this->sizeY - 6);
     $this->options->setSizeX($this->sizeX);
     $this->options->getLayout()->setSizeX($this->sizeX);
     $this->options->setPosition($this->sizeX / 2, 8 - $this->sizeY);
     $options = $this->options->getComponents();
     if (count($options)) {
         $optionSizeX = ($this->sizeX - 2.5) / count($options);
         foreach ($options as $ui) {
             $ui->setSizeX($optionSizeX);
             $ui->setPosX(1.25);
         }
     }
 }
Beispiel #2
0
 protected function onResize($oldX, $oldY)
 {
     parent::onResize($oldX, $oldY);
     $this->text->setSize($this->sizeX - 4, $this->sizeY - 6);
 }