Adjust the tooltip position taking into account all window's edges
Adjust the tooltip position taking into account all window's edges

Fixes #883

devtools-html/perf.html,mstange/cleopatra,mstange/cleopatra,devtools-html/perf.html