From: Hosang Kim Date: Mon, 29 Jun 2015 10:26:52 +0000 (+0900) Subject: genlist: add checking item bring in enable on item looping X-Git-Tag: accepted/tizen/common/20161013.161042~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F26%2F72526%2F5;p=platform%2Fupstream%2Felementary.git genlist: add checking item bring in enable on item looping Change-Id: I0460d17e7ecbadcb749048b8eca97dda9b3bb79e Signed-off-by: Hosang Kim Signed-off-by: Soohye Shin Reviewed-by: SangHyeon Lee --- diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 434b76a..ff83bff 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -5507,7 +5507,19 @@ _elm_genlist_looping_up_cb(void *data, Elm_Object_Item *eo_it = elm_genlist_last_item_get(genlist); - elm_genlist_item_show(eo_it, ELM_GENLIST_ITEM_SCROLLTO_IN); + // TIZEN_ONLY(20150629): add checking item bring in enable on item looping + switch (_elm_config->focus_autoscroll_mode) + { + case ELM_FOCUS_AUTOSCROLL_MODE_SHOW: + elm_genlist_item_show(eo_it, ELM_GENLIST_ITEM_SCROLLTO_IN); + break; + case ELM_FOCUS_AUTOSCROLL_MODE_BRING_IN: + elm_genlist_item_bring_in(eo_it, ELM_GENLIST_ITEM_SCROLLTO_IN); + break; + default: + break; + } + // elm_layout_signal_emit(genlist, "elm,action,looping,up,end", "elm"); sd->item_looping_on = EINA_FALSE; @@ -5529,7 +5541,19 @@ _elm_genlist_looping_down_cb(void *data, Elm_Object_Item *eo_it = elm_genlist_first_item_get(genlist); - elm_genlist_item_show(eo_it, ELM_GENLIST_ITEM_SCROLLTO_IN); + // TIZEN_ONLY(20150629): add checking item bring in enable on item looping + switch (_elm_config->focus_autoscroll_mode) + { + case ELM_FOCUS_AUTOSCROLL_MODE_SHOW: + elm_genlist_item_show(eo_it, ELM_GENLIST_ITEM_SCROLLTO_IN); + break; + case ELM_FOCUS_AUTOSCROLL_MODE_BRING_IN: + elm_genlist_item_bring_in(eo_it, ELM_GENLIST_ITEM_SCROLLTO_IN); + break; + default: + break; + } + // elm_layout_signal_emit(genlist, "elm,action,looping,down,end", "elm"); sd->item_looping_on = EINA_FALSE;