[cyril] changed index method of rect portrait layout.