Refactoring Input method menu is not offscreen


Change-Id: Iff83160eb6c99d6109098e431341240a21274665