From 18801095300b90ada468de7f4064f814b5a8f95c Mon Sep 17 00:00:00 2001 From: "sungwook79.park" Date: Mon, 16 Oct 2017 15:46:54 +0900 Subject: [PATCH] Fix issue that can't select last item in genlist Change-Id: Iff8c9aa00409ab11a7cd72688c0d73b009d757ac Signed-off-by: sungwook79.park --- src/w-input-selector.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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; -- 2.7.4