Summary:
If elm_genlist_item_bring_in() is called immediately after appending
item, genlist will not scroll to the last one but stop in the middle.
This patch blocks genlist from scrolling to not calculated item.
Test Plan:
1. Download F31560 and uncompress the file
2. make
3. ./test
Reviewers: SanghyeonLee
Subscribers: cedric, DaveMDS, jpeg
Differential Revision: https://phab.enlightenment.org/D4023
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Change-Id: I972e7f7b91ee885bf87c0338083a0449fa8510df
ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
// TIZEN ONLY(20160630): Support homogeneous mode in item class.
- if ((sd->queue) ||
+ if ((sd->queue) || (it->item->block->w < 1) ||
(!((sd->homogeneous || it->itc->homogeneous) &&
(sd->mode == ELM_LIST_COMPRESS))))
{
- if ((it->item->queued) || (!it->item->mincalcd) || (sd->queue))
+ if ((it->item->queued) || (!it->item->mincalcd) ||
+ (sd->queue) || (it->item->block->w < 1))
{
sd->check_scroll = EINA_TRUE;
sd->show_item = it;