angular2-grid
angular2-grid copied to clipboard
Margin affect the col-widt/row-height
Hi,
either im configuring wrong or understanding something wrong.
my configuration:
this is ok but by increasing the margin to one the with increases by 3:

some ideas?
Yeah, that's correct. For every width 1 row that you have, adding a margin of 1 makes the total row width 1. That's because the smallest row would be 1px wide with a 1px margin either side. So when the item width gets calculated it's (width * rowCount) + ((marginLeft + marginRight) * (rowCount - 1)). Does that make sense?