Item expandend state need to be resetted (contracted) when the
item goes in the items cache, otherwise when the item will be reused
it will have unwanted state (expanded).
Quite visible in the "Genlist Tree and Decorate All Mode" test
@fix
itc->spacer = it->spacer;
itc->base_view = VIEW(it);
itc->item_style = eina_stringshare_add(it->itc->item_style);
- if (it->item->type & ELM_GENLIST_ITEM_TREE) itc->tree = 1;
+ if (it->item->type & ELM_GENLIST_ITEM_TREE)
+ {
+ itc->tree = 1;
+ if (it->item->expanded)
+ edje_object_signal_emit(itc->base_view, SIGNAL_CONTRACTED, "elm");
+ }
if (it->selected)
edje_object_signal_emit(itc->base_view, SIGNAL_UNSELECTED, "elm");