mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
Improve fix for #12153
Use a WYSIWYM approach instead of a WYSIWYG one.
This commit is contained in:
parent
55da675efa
commit
2629bd6dfb
@ -480,9 +480,9 @@ void InsetMathHull::metrics(MetricsInfo & mi, Dimension & dim) const
|
|||||||
{
|
{
|
||||||
/* Compute \(above|below)displayskip
|
/* Compute \(above|below)displayskip
|
||||||
true value in LaTeX is 10pt plus 2pt minus 5pt (in normal size at 10pt)
|
true value in LaTeX is 10pt plus 2pt minus 5pt (in normal size at 10pt)
|
||||||
But 12 pixels is what we are used to.
|
But we use a fixed number of pixels and scale them with zoom.
|
||||||
*/
|
*/
|
||||||
int const bottom_display_margin = 12;
|
int const bottom_display_margin = mi.base.bv->zoomedPixels(6);
|
||||||
int top_display_margin = bottom_display_margin;
|
int top_display_margin = bottom_display_margin;
|
||||||
// at start of paragraph, add an empty line
|
// at start of paragraph, add an empty line
|
||||||
if (mi.vmode)
|
if (mi.vmode)
|
||||||
|
Loading…
Reference in New Issue
Block a user