I need some comments on the following ticket:
http://www.lyx.org/trac/ticket/10304
Producing a patch would not be difficult, but I wonder whether there are
reasons for this extra spacing that I could have missed.
The situation is that there is a TEXT_TO_INSETOFFSET gap around the
inset (4 pixels on the 4 sides), plus an extra pixel on the left. I am
not sure why this is required actually. I guess that the intent is to
have a preview which has a size approaching the inner text if this text
is normal text.
The one pixel on the left is the same for all previewed insets, and has
probable been copied from the math inset (it is present in IPA inset
too). I guess the intent is to help setting cursor just in front of the
inset, but it cannot work since the cursor will always go inside it
anyway. Or it is to display the blinking cursor before the inset and not
inside it. That makes sense.
I am not sure though that the extra 8 pixels makes sense, and I would be
willing to remove them. I have reservations too about the extra spacing
above and below the inset, but removing it would require similar changes
in Text insets, which is much more work.
I'd be interested to have input at this point.
JMarc