VE-1406 Prevent autocomplete menu from being clipped

The code in lines 402-405 has changed the behavior in the old source editor, so the dropdown is shifted to the left if it would be over the right edge of the textarea. You can compare this branch to production in the browser to see. The behavior is different but I don't think it negatively affects the experience in that editor.