Fixed moving legend when postioned on the bottom and vertical dragging