cursor to the end of line on orientation change