Calculate line position for cues with their snapToLines flag set.
Finish the algorithm to position boxes when their snapToLines flag is not set.