summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgodly.talias <godly.talias@samsung.com>2016-03-04 15:46:18 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-03-04 16:14:37 -0800
commit6785fa01252f0b789d6c93ee6f52afcda4a3aa7a (patch)
tree731589929ceef45b351754557eede1747920b7f5
parentbe923bd58dfcf1dd7e51eceef64afed4a8ce4ce0 (diff)
downloadelementary-6785fa01252f0b789d6c93ee6f52afcda4a3aa7a.tar.gz
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>
-rw-r--r--src/lib/elm_genlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index ebb31f2c2..fd5e8aaf2 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -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
{