Genlist: fix for an item width calculation issue on item show / scrolling

Summary:
When item_show / scrolling is happening, _item_block_position will be
called from smart_calculate where item width is set as block width.
If items are not realized _item_realize will be called and if items are
getting realized for first time we set mincalcd as false. So later
item width gets overwritten by min width of item and so issue is happening.

@fix T2603

Signed-off-by: godly.talias <godly.talias@samsung.com>

Test Plan: elementary_test -> Genlist Group -> show 480

Reviewers: prince.dubey, shilpasingh, SanghyeonLee, cedric

Subscribers: rajeshps, seoz, govi

Maniphest Tasks: T2603

Differential Revision: https://phab.enlightenment.org/D3729

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
godly.talias 2016-03-04 15:46:18 -08:00 committed by Cedric BAIL
parent 4fd06a2f7e
commit 79a0cdd9ce
1 changed files with 2 additions and 0 deletions

View File

@ -1900,6 +1900,8 @@ _item_realize(Elm_Gen_Item *it,
GL_IT(it)->w = GL_IT(it)->minw = size->minw;
GL_IT(it)->h = GL_IT(it)->minh = size->minh;
it->item->mincalcd = EINA_TRUE;
if (GL_IT(it)->block->realized)
GL_IT(it)->w = GL_IT(it)->block->w;
}
else
{