cedric pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=6785fa01252f0b789d6c93ee6f52afcda4a3aa7a

commit 6785fa01252f0b789d6c93ee6f52afcda4a3aa7a
Author: godly.talias <godly.tal...@samsung.com>
Date:   Fri Mar 4 15:46:18 2016 -0800

    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.tal...@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 <ced...@osg.samsung.com>
---
 src/lib/elm_genlist.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index ebb31f2..fd5e8aa 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
                {

-- 


Reply via email to