Commit a7a2d082 HZH

bug

1 个父辈 eb57b855
......@@ -127,7 +127,7 @@ namespace HZH_Controls.Controls
if (value == _IsExpansion)
return;
_IsExpansion = value;
if (!value)
if (!value && _Childrens != null && _Childrens.Length > 0)
{
_Childrens.ToList().ForEach(p => { if (p != null) { p.IsExpansion = false; } });
}
......
......@@ -197,7 +197,7 @@ namespace HZH_Controls.Controls
return false;
else
{
if (ItemClicked != null && item.WorkingRectangle.Contains(mouseLocation))
if (ItemClicked != null && item.DrawRectangle.Contains(mouseLocation))
{
ItemClicked(item, null);
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!