TSAM-11439 Display wrong information when change to RTL 30/103930/1
authorAleksandr Sapozhnik <a.sapozhnik@samsung.com>
Sun, 11 Dec 2016 09:24:44 +0000 (11:24 +0200)
committerAleksandr Sapozhnik <a.sapozhnik@samsung.com>
Sun, 11 Dec 2016 09:24:44 +0000 (11:24 +0200)
Change-Id: I167efa36d660002049c560e94773b00394b9e5ef
Signed-off-by: Aleksandr Sapozhnik <a.sapozhnik@samsung.com>
lib-apps-common/src/Ui/ScrollNavigator.cpp

index e9873e4..0c0a832 100644 (file)
@@ -87,10 +87,6 @@ size_t ScrollNavigator::getPageIndex(TabPage *page) const
 {
        Eina_List *list = elm_box_children_get(m_Box);
        size_t index = eina_list_data_idx(list, page->getEvasObject());
-       if (elm_object_mirrored_get(m_Box)) {
-               size_t count = eina_list_count(list);
-               index = count - index - 1;
-       }
        eina_list_free(list);
        return index;
 }
@@ -98,10 +94,6 @@ size_t ScrollNavigator::getPageIndex(TabPage *page) const
 TabPage *ScrollNavigator::getPageByIndex(size_t index) const
 {
        Eina_List *list = elm_box_children_get(m_Box);
-       if (elm_object_mirrored_get(m_Box)) {
-               size_t count = eina_list_count(list);
-               index = count - index - 1;
-       }
 
        Evas_Object *obj = (Evas_Object *) eina_list_nth(list, index);
        eina_list_free(list);