fixed height calculation of the dragged frame when add new event