tabled
tabled copied to clipboard
How table should act on `Panel` creation
It is a topic I've changed the opinion several times. And as you see I still didn't came to the conclusion.
The problem arise when we have set Border
s and Color
s to a cells.
When we create a Panel
the tables shape changes so the former set things (colors, lines, borders, spans, ...) are no longer point to a former cells.
We can either update the cells in regard of a new cells or keep everything. So it would need to be done manually.
My thoughts against the update is sometimes the update will make things are not the same as they was.
For example imagine we had a panel at the top, then we create a few vertical panels. In either case updating or not the table will be in a different state.
Look on the picture, now the top panel is actually doesn't cover all the table (from left to right).
now it has span=5
.
And because of this the Alignment
is not actually centered as it was.
If we would update the span, it would be span=10
which also not what it was exactly.
So the question is, Shall we try to update the indexes of user set settings or not?
The output where we don't do any shifts.