Ensure height line is always inside the trapezoid

Reviewers: eater

Reviewed By: eater

Differential Revision: http://phabricator.khanacademy.org/D12810