{
Elm_Gen_Item *it;
//TIZEN_ONLY(20150825) : Use the specific wanted_region_set func only for gengrid.
- int pos_x, pos_y, min_x, min_y;
+ int pos_x, pos_y, min_x, min_y, mx;
+ Eina_Bool mirrored;
//
it = _elm_gengrid_item_new(sd, itc, data, func, func_data);
sd->is_append = EINA_TRUE;
elm_obj_pan_pos_get(sd->pan_obj, &pos_x, &pos_y);
elm_obj_pan_pos_min_get(sd->pan_obj, &min_x, &min_y);
- sd->top_to_x = pos_x - min_x;
+ elm_obj_pan_pos_max_get(sd->pan_obj, &mx, NULL);
+ mirrored = efl_ui_mirrored_get(obj);
+ sd->top_to_x = (mirrored ? (mx + min_x - pos_x) : (pos_x - min_x));
sd->top_to_y = pos_y - min_y;
//
return EO_OBJ(it);
{
Elm_Gen_Item *it;
//TIZEN_ONLY(20150825) : Use the specific wanted_region_set func only for gengrid.
- int pos_x, pos_y, min_x, min_y;
+ int pos_x, pos_y, min_x, min_y, mx;
+ Eina_Bool mirrored;
//
Eina_Inlist *tmp;
EINA_SAFETY_ON_NULL_RETURN_VAL(eo_relative, NULL);
sd->is_append = EINA_TRUE;
elm_obj_pan_pos_get(sd->pan_obj, &pos_x, &pos_y);
elm_obj_pan_pos_min_get(sd->pan_obj, &min_x, &min_y);
- sd->top_to_x = pos_x - min_x;
+ elm_obj_pan_pos_max_get(sd->pan_obj, &mx, NULL);
+ mirrored = efl_ui_mirrored_get(obj);
+ sd->top_to_x = (mirrored ? (mx + min_x - pos_x) : (pos_x - min_x));
sd->top_to_y = pos_y - min_y;
//
if (sd->is_append)
{
Evas_Coord pan_x, pan_y;
- Evas_Coord minx, miny;
+ Evas_Coord minx, miny, mx;
Evas_Coord set_x, set_y;
+ Eina_Bool mirrored = efl_ui_mirrored_get(obj);
elm_obj_pan_pos_get(sd->pan_obj, &pan_x, &pan_y);
elm_obj_pan_pos_min_get(sd->pan_obj, &minx, &miny);
+ elm_obj_pan_pos_max_get(sd->pan_obj, &mx, NULL);
if (sd->horizontal)
{
- set_x = minx + sd->top_to_x;
+ set_x = (mirrored ? (mx + minx - sd->top_to_x) : (minx + sd->top_to_x));
elm_interface_scrollable_content_pos_set(sd->obj, set_x, pan_y, EINA_TRUE);
}
else