Merge "Use the layout for calculating IME inset." into nyc-dev