void HwndWrapper::Arrange(const Rect finalRect) { if (layout) { // might over-write position if our layout knows about us layout->Arrange(finalRect); } else { if (children.size() == 1) { ILayout* l = children.at(0); l->Arrange(finalRect); } } }
void Control::Arrange(const Rect finalRect) { SetPosition(finalRect); if (layout) { // might over-write position if our layout knows about us layout->Arrange(finalRect); } else { if (children.Count() == 1) { ILayout *l = children.At(0); l->Arrange(finalRect); } } }