Bug introduced in 7.0 or earlier and fixed in 13.1
I've run into a Grid
layout problem for which I don't know a solution. I want to specify alignment to a specific character such as a decimal and an ItemSize
on a per-Item
basis. When I try to do this the decimal ends up on the right edge of the field rather than somewhere in the middle. My application is part of a larger, more complex Grid layout but here is a simple illustration:
gridIt[itemopts__] :=
Module[{x},
x = {{1.234, 12.34}, {123.4, 1234.}, {1234, 1.234}};
x = Map[Item[#, itemopts] &, x, {2}];
x = Prepend[x, {"Title", SpanFromLeft}];
Grid[x, Alignment -> {Center, Center}, Dividers -> All]
]
gridIt[Alignment -> "."]
gridIt[Alignment -> ".", ItemSize -> 4.4]
Why does this happen and how can I work around it?
Alignment -> \[AlignmentMarker]
option and embed the\[AlignmentMarker]
in the numbers as I showed here. $\endgroup$