if panel would go off botom of screen, align the botom to window
Merge pull request #2 from ProCynic/2-panel-position

panel sometimes goes off bottom of screen.