Am 25.11.2010 10:35, schrieb Vincent van Ravesteijn:
You miss quite some code ;).
1. drawRowSelection is located in TextMetrics and therefore ignores
the offset_valign_,
Ah.
2. you now have the strange convention that the offset is positive
when the inset is shifted upwards,
This is the convention used in InsetMathGrid.
3. h = tabular.row_info[tabular.nrows() - 1].offset;
Isn't this just tabular.height() - tabular.rowAscent(0) ?
Yes, indeed.
4. AFAIS, dim.asc is never used in the painting, so the painting goes wrong.
Anyway, it's much more complex than this, and there are some hidden
bugs that need to be solved.
I already fixed this and I will commit soon.
Many thanks! I learned from your fix. It works well, I only adjusted the offset to get what LaTeX
does in r36494.
Btw., do you have a starting point for me how to fix #7056? Where in the code do we set what is
displayed in the context menu?
many thanks and regards
Uwe