Summary: "In Tree effect feature, during expansion of tree, when total number of items crosses block count, items start floating".
Test Plan: Run elementary_test, open Genlist Tree, keep expanding items untill it crosses number of count 32 (Block count). Resize the window, floting items can be seen.
Reviewers: raster, cedric
Subscribers: shilpasingh, poornima.srinivasan, govi, rajeshps
Differential Revision: https://phab.enlightenment.org/D2627
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
{
Elm_Object_Item *eo_it = NULL;
const Eina_List *l;
+ Item_Block *itb;
+ Elm_Gen_Item *it1;
+ Evas_Coord y = 0;
if (sd->tree_effect_animator)
{
edje_object_signal_emit(VIEW(it), SIGNAL_SHOW, "elm");
}
}
+ if (sd->move_effect_mode ==
+ ELM_GENLIST_TREE_EFFECT_EXPAND)
+ {
+ EINA_INLIST_FOREACH(sd->blocks, itb)
+ {
+ EINA_LIST_FOREACH(itb->items, l, it1)
+ {
+ if (it1->item->scrl_y <= y)
+ {
+ it1->item->scrl_y = y + it1->item->h;
+ _elm_genlist_item_unrealize(it1, EINA_FALSE);
+ }
+ y = it1->item->scrl_y;
+ }
+ }
+ }
}
_item_auto_scroll(sd);