Fix candidate panel not to be out of screen.

BUG=http://code.google.com/p/ibus/issues/detail?id=1676
TEST=ui/gtk3/ibus-ui-gtk3

Review URL: https://codereview.appspot.com/35800045