Eina_Bool reorder : 1;
Eina_Bool decorate_it_set : 1; /**< item uses style mode for highlight/select */
Eina_Bool flipped : 1; /**< a flag that shows the flip status of the item. */
+ Eina_Bool has_contents : 1; /**< content objs have or previously did exist (size calcs) */
};
#endif
_item_text_realize(it, VIEW(it), &it->texts, NULL);
it->content_objs =
_item_content_realize(it, VIEW(it), &it->contents, NULL);
+ if (it->has_contents != (!!it->content_objs))
+ it->item->mincalcd = EINA_FALSE;
+ it->has_contents = !!it->content_objs;
_item_state_realize(it, VIEW(it), &it->states, NULL);
if (it->flipped)
{
&it->contents, parts);
it->content_objs = _item_content_realize(it, VIEW(it),
&it->contents, parts);
-
+ if (it->has_contents != (!!it->content_objs))
+ it->item->mincalcd = EINA_FALSE;
+ it->has_contents = !!it->content_objs;
if (it->item->type == ELM_GENLIST_ITEM_NONE)
{
Evas_Object* eobj;
if ((!itf) || (itf & ELM_GENLIST_ITEM_FIELD_STATE))
_item_state_realize(it, VIEW(it), &it->states, parts);
+ if (!it->item->mincalcd)
+ elm_genlist_item_update(item);
}
EAPI void