Scroller: keep contents layout rel even if rtl is set
authorWonki Kim <wonki_.kim@samsung.com>
Wed, 21 Dec 2016 10:42:11 +0000 (19:42 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 05:37:11 +0000 (14:37 +0900)
Once rtl mode is set, elm_layout reverses its x-axis.
however, scroller uses elm_layout to contain both original content and
proxy image of it when loop mode is set.

In this situation, elm_layout should not reverse its x-axis when It is
used for container of proxy to support loop mode of scroller.

This commit will not apply rtl mode to contents layout (mirrored set)

@tizen_fix

Change-Id: Ia334cc2beb61621f9b9e16c5463345efd8a415c2
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
src/lib/elm_scroller.c

index 3a64ddcd7030f50ff092d3a54cf2e915456ebe10..1faa9fcf237c5f9b432b6866b8de3e0c9c545cfe 100644 (file)
@@ -791,6 +791,10 @@ _loop_content_set(Evas_Object *obj, Elm_Scroller_Data *sd, Evas_Object *content)
 
         elm_widget_sub_object_add(obj, sd->contents);
         elm_widget_on_show_region_hook_set(sd->contents, _show_region_hook, obj);
+        // TIZEN_ONLY(20161221): keep contents layout relative even if rtl is set
+        elm_widget_mirrored_automatic_set(sd->contents, EINA_FALSE);
+        elm_widget_mirrored_set(sd->contents, EINA_FALSE);
+        // END
      }
    elm_object_part_content_set(sd->contents, "elm.swallow.content", content);
    sd->content = content;