Fix frame layout issue on IME-composition