haltu / muuri

Infinite responsive, sortable, filterable and draggable layouts
https://muuri.dev
MIT License
10.77k stars 643 forks source link

Issue with horizontal alignment of items #548

Open akashkodesia opened 1 year ago

akashkodesia commented 1 year ago

Hi

I am using muuri in angular with muuri-angular package, I am facing a problem don't know if its an issue or something at my end, let say I have 10 items and showing 5 item in each row, in this case when we have only single item in third row, item is automatically getting aligned to the right but as soon as soon as we add one more item alignment gets corrected and getting aligned to the left.

Layout config is set to default.

Observation: if I set layout.alignRight = true, then its working correct for the scenario