if (newBounds.bottom < newBounds.top) newBounds.bottom = newBounds.top; if (newBounds.right < newBounds.left) newBounds.right = newBounds.left;
void setZOrder () {	int topHandle = topHandle ();	int parentHandle = parent.handle;	OS.HIViewAddSubview (parentHandle, topHandle);	//OS.EmbedControl (topHandle, parentHandle);	/* Place the child at (0, 0) in the parent */	Rect parentRect = new Rect ();	OS.GetControlBounds (parentHandle, parentRect);	Rect inset = getInset ();	Rect newBounds = new Rect ();	newBounds.left = (short) (parentRect.left + inset.left);	newBounds.top = (short) (parentRect.top + inset.top);	newBounds.right = (short) (newBounds.left - inset.right - inset.left);	newBounds.bottom = (short) (newBounds.top - inset.bottom - inset.top);	OS.SetControlBounds (topHandle, newBounds);}