Set child and parent window as the window size .