Nice menu + Offset

Menu opens nicely with smoothing. Offset is calculated if the menu comes
to close to the bottom of the window.