👾 修复 Tree Visible 隐藏后依旧渲染

This commit is contained in:
Tom
2026-02-03 16:47:29 +08:00
parent fee2ed1476
commit 24f5ddea1f

View File

@@ -538,7 +538,7 @@ namespace AntdUI
{
foreach (var it in items)
{
it.show = rect.IsItemVisibleExpand(sx, sy, it.rect, it.Expand, it.SubHeight);
it.show = it.Visible && rect.IsItemVisibleExpand(sx, sy, it.rect, it.Expand, it.SubHeight);
if (it.show)
{
PaintItem(g, it, tx, ty, fore, fore_active, hover, active, brushTextTertiary, radius, sx, sy);