summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authorxue <>2005-12-10 20:21:28 +0000
committerxue <>2005-12-10 20:21:28 +0000
commit5ecce1f03a230da31fddc91008e76978ef90fa78 (patch)
treec7019b3fb77f1f04ef1bcd459399d3d5dfd915c1 /framework/Web
parent69e3f12fa26eca98fe3e9f42f37201ab75a089e3 (diff)
If a control is invisible, it's PreRender event will not be raised.
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/UI/TControl.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php
index 86397770..a4625d18 100644
--- a/framework/Web/UI/TControl.php
+++ b/framework/Web/UI/TControl.php
@@ -1040,12 +1040,15 @@ class TControl extends TComponent
*/
protected function preRenderRecursive()
{
- $this->onPreRender(null);
- if($this->getHasControls())
+ if($this->getVisible(false))
{
- foreach($this->_rf[self::RF_CONTROLS] as $control)
- if($control instanceof TControl)
- $control->preRenderRecursive();
+ $this->onPreRender(null);
+ if($this->getHasControls())
+ {
+ foreach($this->_rf[self::RF_CONTROLS] as $control)
+ if($control instanceof TControl)
+ $control->preRenderRecursive();
+ }
}
$this->_stage=self::CS_PRERENDERED;
}