summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TActivePager.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActivePager.php')
-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);
}