From: sungwook79.park Date: Mon, 16 Oct 2017 06:46:54 +0000 (+0900) Subject: Fix issue that can't select last item in genlist X-Git-Tag: accepted/tizen/4.0/unified/20171017.212637~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Finputdelegator.git;a=commitdiff_plain;h=18801095300b90ada468de7f4064f814b5a8f95c Fix issue that can't select last item in genlist Change-Id: Iff8c9aa00409ab11a7cd72688c0d73b009d757ac Signed-off-by: sungwook79.park --- diff --git a/src/w-input-selector.cpp b/src/w-input-selector.cpp index a9f33b9..77e12c1 100755 --- a/src/w-input-selector.cpp +++ b/src/w-input-selector.cpp @@ -989,6 +989,20 @@ unsigned int _update_template_items(void *user_data) item_size++; } elm_genlist_item_class_free(itc); + + // dummy item for empty space + Elm_Genlist_Item_Class * itc0 = elm_genlist_item_class_new(); + itc0->item_style = "title"; + itc0->func.text_get = NULL; + itc0->func.content_get = NULL; + itc0->func.state_get = NULL; + itc0->func.del = NULL; + + it_empty = elm_genlist_item_append(app_data->genlist, itc0, + NULL, NULL, + ELM_GENLIST_ITEM_NONE, + NULL, NULL); + elm_genlist_item_class_free(itc0); } return item_size;