Fix issue that can't select last item in genlist 78/155778/1
authorsungwook79.park <sungwook79.park@samsung.com>
Mon, 16 Oct 2017 06:46:54 +0000 (15:46 +0900)
committersungwook79.park <sungwook79.park@samsung.com>
Mon, 16 Oct 2017 06:46:54 +0000 (15:46 +0900)
Change-Id: Iff8c9aa00409ab11a7cd72688c0d73b009d757ac
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
src/w-input-selector.cpp

index a9f33b9..77e12c1 100755 (executable)
@@ -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;