fixed calculation of popup height. Up arrow is finally in the right spot