The first and last rows and columns of my Grid
s always seem to be smaller than all the other rows in my Grid
, as of they had been truncated.
For example
Grid[Array[#1 + #2 &, {5, 5}],ItemSize -> {2, 2},BaseStyle -> {FontFamily -> "Helvetica"},
Background -> {
{Green, Automatic, LightRed, Automatic, Green},
{LightBlue, Automatic, Yellow, Automatic, LightBlue}}]
gives
in which all of the elements in the first and last rows are noticeably shorter, and all the elements in the first and last column are noticeably narrower, than all other elements.
Why does this happen and how can I prevent it?
Spacings -> {0, 0}
should work. But I agree it's not what one would expect. $\endgroup$one == two
. You're working modulo zero. $\endgroup$