repositioning legendTop based on Window height