From da1a80fe477c84ded7d660a0bab472bd97b615d0 Mon Sep 17 00:00:00 2001 From: lipengg Date: Wed, 15 Nov 2017 19:48:00 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E9=A1=B5=E9=9D=A2=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E6=97=B6=EF=BC=8Cpe:if=20=E5=AD=90=E6=8E=A7=E4=BB=B6=E5=8F=A0?= =?UTF-8?q?=E5=8A=A0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/ide/System/Windows/mcml/Elements/pe_if.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/ide/System/Windows/mcml/Elements/pe_if.lua b/script/ide/System/Windows/mcml/Elements/pe_if.lua index fafec5d8..6f35f5cb 100644 --- a/script/ide/System/Windows/mcml/Elements/pe_if.lua +++ b/script/ide/System/Windows/mcml/Elements/pe_if.lua @@ -15,9 +15,12 @@ function pe_if:LoadComponent(parentElem, parentLayout, style) local condition = self:GetAttributeWithCode("condition", nil, true); self.isConditionTrue = (condition==true or condition=="true"); if (self.isConditionTrue) then + self:show(); for childnode in self:next() do childnode:LoadComponent(parentElem, parentLayout, style); end + else + self:hide(); end end