BUG: Improve placement of CallTipWidget
BUG: Improve placement of CallTipWidget

Only the vertical placement of the CallTipWidget was being checked.
Now add checks for horizontal placement as well.

ipython/ipython,ipython/ipython