Amends ce2ddeb2.
This is needed to handle the case when the window is initially maximized.
CCBUG: 494352