fix: hack a default size.

This commit is contained in:
rabbitism
2024-02-08 20:14:11 +08:00
parent 2a08391dc7
commit c288836ce6
2 changed files with 6 additions and 1 deletions

View File

@@ -70,6 +70,11 @@ public class SelectionList: SelectingItemsControl
if (container is null) return size;
_indicator.Arrange(container.Bounds);
}
else
{
// This is a hack. The indicator is not visible, so we arrange it to a 1x1 rectangle
_indicator?.Arrange(new Rect(new Point(), new Size(1, 1)));
}
return size;
}