Styling fixes, make sliding animation work.
Use hide event when closing math widget

This ensures that all the hiding machinery is in one place.
Alter height of editable when opening cheatsheet

This allows you to scroll the popover into view if you're editing math
towards the bottom of the page, and the popover is covered up by the
cheatsheet.