private void UpdateLayoutChild(GUIControl child, Vector2 childWindowSize) { child.Refresh(childWindowSize); child.dRect = clipChildren ? Vector2.zero : new Vector2(rect.x, rect.y); child.UpdateLayout(); //---Was (replaced by dRect above): if (!clipChildren) child.rect = new Rect(child.rect.x + rect.x, child.rect.y + rect.y, child.rect.width, child.rect.height); }
private void UpdateLayoutChild(GUIControl child, Vector2 childWindowSize) { child.Refresh(childWindowSize); child.UpdateLayout(); if (!clipChildren) { child.rect = new Rect(child.rect.x + rect.x, child.rect.y + rect.y, child.rect.width, child.rect.height); } }
private void UpdateLayoutChild(GUIControl child, Vector2 childWindowSize) { child.Refresh(childWindowSize); child.dRect = clipChildren ? Vector2.zero : new Vector2(rect.x, rect.y); child.UpdateLayout(); //---Was (replaced by dRect above): if (!clipChildren) child.rect = new Rect(child.rect.x + rect.x, child.rect.y + rect.y, child.rect.width, child.rect.height); }