cedric pushed a commit to branch master.

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

commit b8616483b5ec958b7ad65d29ed379ee98d03c851
Author: Woochan Lee <wc0917....@samsung.com>
Date:   Tue Sep 22 01:52:05 2015 +0200

    Revert "index: fix index object got a wrong min value."
    
    Summary:
    I need to think more about item omitted case, horizontal case as well.
    Now i'm working on this. It may need to refactoring internal logic.
    
    Please revert this commit it break view when index item omitted.
    
    @fix
    
    This reverts commit 560338c5c31bda8912938074cb736eabdb9f1f31.
    
    Reviewers: Hermet, cedric, woohyun
    
    Differential Revision: https://phab.enlightenment.org/D3062
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/elm_index.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/elm_index.c b/src/lib/elm_index.c
index 0b574a6..83194a7 100644
--- a/src/lib/elm_index.c
+++ b/src/lib/elm_index.c
@@ -506,9 +506,9 @@ EOLIAN static void
 _elm_index_elm_layout_sizing_eval(Eo *obj, Elm_Index_Data *_pd EINA_UNUSED)
 {
    Evas_Coord minw = -1, minh = -1;
-   ELM_INDEX_DATA_GET(obj, sd);
+   ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
 
-   evas_object_size_hint_min_get(sd->bx[sd->level], &minw, &minh);
+   edje_object_size_min_calc(wd->resize_obj, &minw, &minh);
    evas_object_size_hint_min_set(obj, minw, minh);
    evas_object_size_hint_max_set(obj, -1, -1);
 }

-- 


Reply via email to