]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_amsarrayinset.C
Fix event loop to no longer eat CPU
[lyx.git] / src / mathed / math_amsarrayinset.C
index dea483859ef0e44980363df7a58ff67ba566703d..0c93b40a4f3225a8a582499e3b6f9b9c77169bb9 100644 (file)
@@ -84,17 +84,17 @@ void MathAMSArrayInset::metrics(MetricsInfo & mi, Dimension & dim) const
        if (m.base.style == LM_ST_DISPLAY)
                m.base.style = LM_ST_TEXT;
        MathGridInset::metrics(m, dim);
-       dim.wid += 12;
+       dim.wid += 14;
        dim_ = dim;
 }
 
 
 void MathAMSArrayInset::draw(PainterInfo & pi, int x, int y) const
 {
-       MathGridInset::draw(pi, x + 6, y);
+       MathGridInset::drawWithMargin(pi, x, y, 6, 8);
        int const yy = y - dim_.ascent();
        mathed_draw_deco(pi, x + 1, yy, 5, dim_.height(), name_left());
-       mathed_draw_deco(pi, x + dim_.width() - 6, yy, 5, dim_.height(), name_right());
+       mathed_draw_deco(pi, x + dim_.width() - 8, yy, 5, dim_.height(), name_right());
        setPosCache(pi, x, y);
 }