Skip to content

Commit 003185f

Browse files
authored
Merge pull request #72 from lipengg/master
fixed pe:gridview childnode onclick function bug
2 parents f7c5be7 + da1a80f commit 003185f

File tree

1 file changed

+3
-0
lines changed
  • script/ide/System/Windows/mcml/Elements

1 file changed

+3
-0
lines changed

script/ide/System/Windows/mcml/Elements/pe_if.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ function pe_if:LoadComponent(parentElem, parentLayout, style)
1515
local condition = self:GetAttributeWithCode("condition", nil, true);
1616
self.isConditionTrue = (condition==true or condition=="true");
1717
if (self.isConditionTrue) then
18+
self:show();
1819
for childnode in self:next() do
1920
childnode:LoadComponent(parentElem, parentLayout, style);
2021
end
22+
else
23+
self:hide();
2124
end
2225
end
2326

0 commit comments

Comments
 (0)