Skip to content

Commit

Permalink
Merge pull request #72 from lipengg/master
Browse files Browse the repository at this point in the history
fixed pe:gridview  childnode onclick function bug
  • Loading branch information
LiXizhi authored Nov 15, 2017
2 parents f7c5be7 + da1a80f commit 003185f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions script/ide/System/Windows/mcml/Elements/pe_if.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 003185f

Please sign in to comment.