Revert "index: fix index object got a wrong min value."
authorWoochan Lee <wc0917.lee@samsung.com>
Mon, 21 Sep 2015 23:52:05 +0000 (01:52 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Sat, 26 Sep 2015 06:34:44 +0000 (08:34 +0200)
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 <cedric@osg.samsung.com>
src/lib/elm_index.c

index 0b574a617752d2b448e2fd86073e8f700d6f4a05..83194a77988fcc15fe9972691f9c4b48fdf37b9b 100644 (file)
@@ -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);
 }