Modify window for rotation event and missed parts.