#245 Fixed graph popups to shift away from screen edge if they would be cut off.