]> git.lyx.org Git - features.git/commitdiff
* add some space between math inset and popup. This should really come from the font...
authorStefan Schimanski <sts@lyx.org>
Thu, 21 Feb 2008 19:45:05 +0000 (19:45 +0000)
committerStefan Schimanski <sts@lyx.org>
Thu, 21 Feb 2008 19:45:05 +0000 (19:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23108 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathNest.cpp
src/mathed/MathMacro.cpp

index f8228c4485b2a368a8dca496d93635eb9f0f03c0..30e82c5b67f60f34fd6e14536952bf4b509f22d3 100644 (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_;
index 97c25f7a20c46af289e0d7feb56a8513d8b05096..dd8d2814b8ecc35f69bc3a76d8da6d971545d0c1 100644 (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_;