diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/UI/ActiveControls/TActivePager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/UI/ActiveControls/TActivePager.php b/framework/Web/UI/ActiveControls/TActivePager.php index b23948e02..4ceccfa72 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); } |