present from barbutton
fixed calculation of popup height. Up arrow is finally in the right spot
Merge pull request #6 from mysterioustrousers/up-and-down

present from barbutton