2003/10/18 06:39:36
[org.ibex.core.git] / src / org / xwt / Box.java.pp
index 04a0ee2..32127af 100644 (file)
@@ -515,9 +515,9 @@ public final class Box extends JS.Scope {
             if (g.p != null)
                 buf.drawPictureAlphaOnly(g.p,
                                          x,
-                                         y + g.max_ascent - g.baseline - g.max_descent,
+                                         y + g.max_ascent - g.baseline + g.max_descent,
                                          x + g.p.getWidth(),
-                                         y + g.max_ascent - g.baseline + g.p.getHeight() - g.max_descent,
+                                         y + g.max_ascent - g.baseline + g.max_descent + g.p.getHeight(),
                                          0, 0,
                                          g.p.getWidth(), g.p.getHeight(),
                                          textcolor);