-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Labels
Description
There is a minor but substantial error in calculating number of columns. I will try to explain it below,
As per your code,
column width = item width + gutter
number of columns = parent width / column width
However, last column don't need gutter. So it should be
number of columns = ( parent width + gutter ) / column width
you may need to change other related code as well.