From: megacz Date: Fri, 30 Jan 2004 06:48:09 +0000 (+0000) Subject: 2002/06/14 22:58:02 X-Git-Tag: RC3~1685 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=b3611dccef8b70fc1229f259e3a9f9bdf1b2b8b4;hp=3a623d5fca6eb3297a6d802160c20ce0941bac14;p=org.ibex.core.git 2002/06/14 22:58:02 darcs-hash:20040130064809-2ba56-3fa652abdcc280ff7819c8ad2fc4b9b4d38b23ef.gz --- diff --git a/src/org/xwt/Box.java b/src/org/xwt/Box.java index 51315b9..e34fe98 100644 --- a/src/org/xwt/Box.java +++ b/src/org/xwt/Box.java @@ -831,7 +831,7 @@ public final class Box extends JSObject { int x1 = max(x, pos(0) + bw); int y1 = max(y, pos(1) + bh); int x2 = min(x + w, pos(0) + size(0) - bw); - int y2 = min(y + h, pos(1) + size(1) - 2); + int y2 = min(y + h, pos(1) + size(1) - bh); buf.setClip(0, 0, buf.getWidth(), buf.getHeight()); if (y2 - y1 > 0 && x2 - x1 > 0) buf.fillRect(x1,y1,x2,y2,(color & 0xFF000000) != 0 ? color : SpecialBoxProperty.lightGray);