I'm trying to lay-out a Grid
with various entry-specific Frame
settings. In my case, using Item[...,Frame->...]
just simplifies the code compared to using Grid[...,Frame->{Automatic,Automatic,{{{a,b},{c,d}}->...}
with a long list of rules.
However, my grid includes some SpanFromLeft
elements, too. In a Grid
containing both the noted Item
s and SpanFromLeft
s, it seems that only some options from Item
are inherited by the SpanFromLeft
cells. For example, Background
gets inherited, but Frame
does not.
Does anyone know why this is, and whether it is a bug, and whether there are any workarounds other than the one I noted (as wanting to avoid)?
Here is an example:
Grid@{{Item[a, Frame -> All, Background -> Red], SpanFromLeft,
Item[b, Frame -> All, Background -> Red]}, {c, d, SpanFromAbove}}
CurrentValue[SelectedNotebook[], {GridBoxOptions, GridBoxDividers}]
and give the result please ? Thanks $\endgroup${}
$\endgroup$CurrentValue[SelectedNotebook[], {GridBoxOptions, GridBoxDividers}]
returning{}
. $\endgroup${}
. I'm running Mac OS X 13.2 with Mathematica 12.2. $\endgroup$