From 32de1043b12a1e4d515e14359916944c1505d48b Mon Sep 17 00:00:00 2001 From: tof <> Date: Mon, 10 Mar 2008 15:30:37 +0000 Subject: Fix rendering of TActivePager when there's only 1 page of data. --- framework/Web/UI/ActiveControls/TActivePager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI/ActiveControls') 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); } -- cgit v1.2.3