Fix positioning of tooltips on edge of screen [story:46217607]