summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authortof <>2008-03-10 15:30:37 +0000
committertof <>2008-03-10 15:30:37 +0000
commit32de1043b12a1e4d515e14359916944c1505d48b (patch)
treee34f2e30ca8c570f7aebec2d554ab1961d403468 /framework/Web/UI
parent6b2547714960641dd55b341061dab1cba93ae203 (diff)
Fix rendering of TActivePager when there's only 1 page of data.
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/ActiveControls/TActivePager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/UI/ActiveControls/TActivePager.php b/framework/Web/UI/ActiveControls/TActivePager.php
index b23948e0..4ceccfa7 100644
--- a/framework/Web/UI/ActiveControls/TActivePager.php
+++ b/framework/Web/UI/ActiveControls/TActivePager.php
@@ -190,7 +190,8 @@ class TActivePager extends TPager implements IActiveControl, ICallbackEventHandl
{
if($this->getHasPreRendered())
{
- parent::render($writer);
+ $this->setDisplay(($this->getPageCount()==1)?TDisplayStyle::None:TDisplayStyle::Dynamic);
+ TWebControl::render($writer);
if($this->getActiveControl()->canUpdateClientSide())
$this->getPage()->getCallbackClient()->replaceContent($this,$writer);
}