* 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:
Stefan Schimanski 2008-02-21 19:45:05 +00:00
parent b1a754e388
commit 7794f870f2
2 changed files with 12 additions and 0 deletions

View File

@ -1665,6 +1665,12 @@ void InsetMathNest::completionPosAndDim(Cursor const & cur, int & x, int & y,
// get inset dimensions
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
= cur.bv().coordCache().insets().xy(inset);
x = xy.x_;

View File

@ -800,6 +800,12 @@ void MathMacro::completionPosAndDim(Cursor const & cur, int & x, int & y,
{
// get inset dimensions
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
= cur.bv().coordCache().insets().xy(this);
x = xy.x_;