interface_scrollable: Unify basis of calculation of page_get logic
authorWonki Kim <wonki_.kim@samsung.com>
Mon, 16 Jan 2017 05:20:04 +0000 (14:20 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 16 Jan 2017 05:20:04 +0000 (14:20 +0900)
commitfbad285eca8bde68de0158395b346bdac25dc3ec
treeeba1fa7c701dcdaa0c10f8addfc9e1c470181a16
parent746ac264254705f9365e4aeed9afb80edf39f6e8
interface_scrollable: Unify basis of calculation of page_get logic

Summary:
If rtl mode is set, current_page_get api should return reversed page number.
To do that, make x position x-axis reversed before page calculating.

Also bring_in and page_show should show the reversed page in rtl mode.
This patch modify the functions to support that.

Lastly, scroller should be scrolling based on the right edge of the page.

This patch is a combination of the patches(D4559,D4560)

Test Plan:
1. Run scroller test on elementary_test
2. Turn ui mirrored mode on
3. Manipulate scroller in various ways
    - It should scroll proper position when you click next or prev btn.

Reviewers: woohyun, taxi2se, z-wony, cedric

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4558
src/lib/elementary/elm_interface_scrollable.c