fixed When the collapse index changes, the style update will not be triggered

https://gitee.com/chinware/atomui/issues/IAUM0S?from=project-issue
This commit is contained in:
polarboy 2024-10-08 14:05:35 +08:00
parent 0dc2b9b5ef
commit 92daa08919

View File

@ -178,6 +178,14 @@ public class Collapse : SelectingItemsControl
SetupCollapseBorderThickness(collapseItem, index);
}
}
protected override void ContainerIndexChangedOverride(Control container, int oldIndex, int newIndex)
{
if (container is CollapseItem collapseItem)
{
SetupCollapseBorderThickness(collapseItem, newIndex);
}
}
private void SetupCollapseBorderThickness(CollapseItem collapseItem, int index)
{