fix tooltip positioning when near the bottom of the screen
resolves #232