]> git.lyx.org Git - features.git/blobdiff - src/mathed/MathMacro.cpp
* add some space between math inset and popup. This should really come from the font...
[features.git] / src / mathed / MathMacro.cpp
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_;