X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FBox.java.pp;h=f2c45a0ec77124016f09d52c3eb19e364334822b;hb=6b010667b40641fdb82925e56466f847f721ef1f;hp=4a1c07aac417a6f2e01ac3045301f1241286bdec;hpb=5ef18e2b3993d3c515a0b51a1326b2ad11285f4a;p=org.ibex.core.git diff --git a/src/org/xwt/Box.java.pp b/src/org/xwt/Box.java.pp index 4a1c07a..f2c45a0 100644 --- a/src/org/xwt/Box.java.pp +++ b/src/org/xwt/Box.java.pp @@ -1096,8 +1096,8 @@ public final class Box extends JS.Scope { } else { // FIXME } - b.minwidth = Math.min(b.maxwidth, Math.max(b.minwidth, b.image == null ? 0 : b.image.getWidth())); - b.minheight = Math.min(b.maxheight, Math.max(b.minheight, b.image == null ? 0 : b.image.getHeight())); + b.minwidth = min(b.maxwidth, max(b.minwidth, b.image == null ? 0 : b.image.getWidth())); + b.minheight = min(b.maxheight, max(b.minheight, b.image == null ? 0 : b.image.getHeight())); MARK_FOR_REFLOW_b; b.dirty(); } @@ -1140,10 +1140,6 @@ public final class Box extends JS.Scope { }); //#end - specialBoxProperties.put("xwt", new SpecialBoxProperty() { - public Object get(Box b) { return XWT.singleton; } - }); - specialBoxProperties.put("mouseinside", new SpecialBoxProperty() { public Object get(Box b) { return ((b.flags & MOUSEINSIDE_FLAG) != 0) ? Boolean.TRUE : Boolean.FALSE; }