yNew += posParent.y;
}
- // move the centre of this window to this position (not the upper left
- // corner as it was done before)
- Move(xNew - width / 2, yNew - height / 2);
+ // move the centre of this window to this position
+ Move(xNew, yNew);
}
// fits the window around the children