In http://www.lyx.org/trac/changeset/33780 I implemented LaTeX's logic of the vertical table alignment:
- the highest cell in the row is taken as base for the alignment of the other cells (i.e. if this cell is e.g. top aligned, its first text line is takes as alignment baseline) - all other cells are aligned along the alignment baseline according to their settingsAttached is a LyX example file that demonstrate that the valign-related drawing of the cell contents is now correct compared to the PDF output.
There are however 2 alignment issues left:- the cursor positions are incorrect when a cell has a valignment (this bug was already there before my commits)
- the table row height needs to be increased and the cell lines drawn
accordingly in the following cases
- highest cell alignment = top
- another cell, alignment = middle or bottom
- highest cell alignment = bottom
- another cell, alignment = top or middle
I must admit that it costs me some hours to read into the metrics stuff and I still haven't fully
understood the ascent/descent calculation for tables. Can therefore please someone else have a look
at the remaining issues? Edwin, Vincent?
thanks and regards Uwe
newfile2.lyx
Description: application/lyx
