} 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();
}
});
//#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; }