public void perform() throws JSExn {
if (texture == null) { Log.warn(Box.class, "perform() called with null texture"); return; }
if (texture.isLoaded) {
- setWidth(max(texture.width, maxwidth), maxwidth);
- setHeight(max(texture.height, maxheight), maxheight);
+ setWidth(max(texture.width, minwidth), maxwidth);
+ setHeight(max(texture.height, minheight), maxheight);
DIRTY; }
else { JS res = texture.stream; texture = null; throw new JSExn("image not found: "+res.unclone()); }
}
b.clear(MOUSEINSIDE);
deleteNode(i);
b.parent = null;
- RECONSTRAIN();
+ REPACK();
putAndTriggerTrapsAndCatchExceptions("ChildChange", b);
}
b.parent = this;
// need both of these in case child was already uncalc'ed
- b.RECONSTRAIN();
- RECONSTRAIN();
+ b.REPACK();
+ REPACK();
b.DIRTY;
putAndTriggerTrapsAndCatchExceptions("ChildChange", b);