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