Alignment Fill Auto

What is the logic behind Auto Fill and Alignment in Horizontal box or any other multi Children Container ?