When generating popup overlay, considering window innerHeight and innerWidth