Box layout does not take padding into account.
Box layout does try to optimize a rectangle packing depending on the desired aspect ratio. However, it does not take the padding into account, which may result in ONO packings.
(Rectangles should be drawn next to each other instead of under each other)
can u give more information on this
The algorithm tries to create a packing with a certain aspect ratio. If however, the bottom padding is very high and all other paddings are zero, this does bot change the outcome and the rectangles are still packed on top of each other instead of next to each other to safe space.
I try to link a model for this but basically, the packing is only a very high strip.
Here is an example using left padding.