Commit 5863fc18 HZH

解决树表格展开关闭高度问题

1 个父辈 20d14dad
...@@ -408,7 +408,6 @@ namespace HZH_Controls.Controls ...@@ -408,7 +408,6 @@ namespace HZH_Controls.Controls
} }
else else
{ {
panChildGrid.Height = 0;
Control[] cs = panChildGrid.Controls.Find("panLeft", true); Control[] cs = panChildGrid.Controls.Find("panLeft", true);
foreach (var item in cs) foreach (var item in cs)
...@@ -422,6 +421,7 @@ namespace HZH_Controls.Controls ...@@ -422,6 +421,7 @@ namespace HZH_Controls.Controls
{ {
item.Height = 0; item.Height = 0;
} }
panChildGrid.Height = 0;
panLeft.BackgroundImage = Properties.Resources.caret_right; panLeft.BackgroundImage = Properties.Resources.caret_right;
this.Height = m_rowHeight; this.Height = m_rowHeight;
panLeft.Tag = 0; panLeft.Tag = 0;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!