[Genlist] pad swallow should be used for tree item.
authorTae-Hwan Kim <the81.kim@samsung.com>
Thu, 21 Mar 2013 08:12:24 +0000 (17:12 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Mon, 25 Mar 2013 06:34:45 +0000 (15:34 +0900)
Change-Id: I45d20f81afd4cb0a733dafc03b96bf01437f6f9f

src/lib/elm_genlist.c

index 3e66140..a08fb0c 100644 (file)
@@ -1671,7 +1671,8 @@ _item_realize(Elm_Gen_Item *it,
 #endif
    treesize = edje_object_data_get(VIEW(it), "treesize");
    if (treesize) tsize = atoi(treesize);
-   if (!it->spacer && treesize)
+   if (it->parent && GL_IT(it->parent)->type == ELM_GENLIST_ITEM_TREE &&
+       !it->spacer && treesize)
      {
         it->spacer =
           evas_object_rectangle_add(evas_object_evas_get(WIDGET(it)));