update tooltip positioning code to constrain within viewport, not just scroll container