Fixed window visibility issues and hover behaviour after resizing.