mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 14:04:25 +00:00
* add some space between math inset and popup. This should really come from the font maximal descent in fact.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23108 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b1a754e388
commit
7794f870f2
@ -1665,6 +1665,12 @@ void InsetMathNest::completionPosAndDim(Cursor const & cur, int & x, int & y,
|
|||||||
|
|
||||||
// get inset dimensions
|
// get inset dimensions
|
||||||
dim = cur.bv().coordCache().insets().dim(inset);
|
dim = cur.bv().coordCache().insets().dim(inset);
|
||||||
|
// FIXME: these 3 are no accurate, but should depend on the font.
|
||||||
|
// Now the popup jumps down if you enter a char with descent > 0.
|
||||||
|
dim.des += 3;
|
||||||
|
dim.asc += 3;
|
||||||
|
|
||||||
|
// and position
|
||||||
Point xy
|
Point xy
|
||||||
= cur.bv().coordCache().insets().xy(inset);
|
= cur.bv().coordCache().insets().xy(inset);
|
||||||
x = xy.x_;
|
x = xy.x_;
|
||||||
|
@ -800,6 +800,12 @@ void MathMacro::completionPosAndDim(Cursor const & cur, int & x, int & y,
|
|||||||
{
|
{
|
||||||
// get inset dimensions
|
// get inset dimensions
|
||||||
dim = cur.bv().coordCache().insets().dim(this);
|
dim = cur.bv().coordCache().insets().dim(this);
|
||||||
|
// FIXME: these 3 are no accurate, but should depend on the font.
|
||||||
|
// Now the popup jumps down if you enter a char with descent > 0.
|
||||||
|
dim.des += 3;
|
||||||
|
dim.asc += 3;
|
||||||
|
|
||||||
|
// and position
|
||||||
Point xy
|
Point xy
|
||||||
= cur.bv().coordCache().insets().xy(this);
|
= cur.bv().coordCache().insets().xy(this);
|
||||||
x = xy.x_;
|
x = xy.x_;
|
||||||
|
Loading…
Reference in New Issue
Block a user