In your example the argument for the align key is always empty which results
in the default alignment for a frame which put the content in the middle of the box.

Wolfgang
Pablo Rodriguez
10. April 2018 um 21:05
Dear list,

I have the following sample:

\setupxtable[mytable]
[option={stretch, height},
align={\ifcase\currentxtablerow\fi}]
\starttext
\startxtable[mytable]
\startxrow
\startxcell 1 \stopxcell
\startxcell 2 \stopxcell
\stopxrow
\startxrow
\startxcell 3 \stopxcell
\startxcell 4 \stopxcell
\stopxrow
\stopxtable
\startxtable[option={stretch, height}]
\startxrow
\startxcell 1 \stopxcell
\startxcell 2 \stopxcell
\stopxrow
\startxrow
\startxcell 3 \stopxcell
\startxcell 4 \stopxcell
\stopxrow
\stopxtable
\stoptext

For some strange reason, when using \ifcase in align, default is changed
from {high, left} to {lohi, center}. Shouldn’t defaults be the same?

BTW, if I set align to {\ifodd\currentxtablerow\fi}. I wonder whether
this might be a bug.

Many thanks for your help,

Pablo