Georg Baum wrote:
if you place the cursor in front of a vspace inset, it is displayed way
too high.
Did you try different vspace values (very large, very small)? I am not sure
whether this behaviour is on purpose or not.
Yes, I did. The LyX cursor is determined by the font size of the
paragraph; its vertical bar is drawn from maximum ascent to maximum
descent. To make vspace insets look good, their relative position to the
baseline must be defined properly. This is what the patch does.
This is not needed, but does no harm either.
I know.
Why do
we decrease the font size twice but compute some values in between?)
Because it was only one step until recently. When I included the text width
in metrics I did change the original code as little as possible because I
did not want to dig in the details of the vertical metrics.
Aha! Anyway, I hope that the new code is a bit clearer. After all there
is no magic in it.
Michael