Prevent overlap of textarea and menu

Fixes #558
Merge pull request #565 from twosigma/sjs/fix-520

Prevent overlap of textarea and menu