| @@ 88-98 (lines=11) @@ | ||
| 85 | ||
| 86 | $container->addChild($quad); |
|
| 87 | $container->addChild($contentFrame); |
|
| 88 | if ($this->scrollbarV) { |
|
| 89 | $contentFrame->setSize($this->width - 5, $this->height); |
|
| 90 | $this->offset = 5; |
|
| 91 | $container->addChild(new Scrollbar( |
|
| 92 | "Y", |
|
| 93 | $this->getWidth(), |
|
| 94 | 0, |
|
| 95 | 10, |
|
| 96 | $this->getHeight() |
|
| 97 | )); |
|
| 98 | } |
|
| 99 | ||
| 100 | if ($this->scrollbarH) { |
|
| 101 | $contentFrame->setSize($this->width - 5, $this->height - 5); |
|
| @@ 100-109 (lines=10) @@ | ||
| 97 | )); |
|
| 98 | } |
|
| 99 | ||
| 100 | if ($this->scrollbarH) { |
|
| 101 | $contentFrame->setSize($this->width - 5, $this->height - 5); |
|
| 102 | $container->addChild(new Scrollbar( |
|
| 103 | "X", |
|
| 104 | 0, |
|
| 105 | -$this->getHeight(), |
|
| 106 | 10, |
|
| 107 | $this->getWidth() - $this->offset |
|
| 108 | )); |
|
| 109 | } |
|
| 110 | ||
| 111 | ||
| 112 | return $container->render($domDocument); |
|