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