Cut-off popup when opening at the bottom of the page, fixes #24