Fix issue that can't select last item in genlist
[platform/core/uifw/inputdelegator.git] / 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;