Bug 972276: Cache window size on event to avoid reflows