// as external events have occured, check the state of box
if (texture != null) {
if (texture.isLoaded) { minwidth = texture.width; minheight = texture.height; }
// as external events have occured, check the state of box
if (texture != null) {
if (texture.isLoaded) { minwidth = texture.width; minheight = texture.height; }