webs: Add window resize handler.