cedric pushed a commit to branch master.


commit 560338c5c31bda8912938074cb736eabdb9f1f31
Author: woochan lee <wc0917....@samsung.com>
Date:   Tue Aug 4 16:04:44 2015 +0200

    index: fix index object got a wrong min value.
    The evas box swallowed in "elm,swallow,index" part.
    Then the each index item will be appended into evas_box when elm_index_go 
    If user make the line or dot for that swallow part for resize same as 
internall box.
    edje_size_min_calc always give the '0'value for it.
    Box will be swallowed the only on swllow part for desicion index layout 
    So the index min value should follow the box size.
    Test Plan:
    Run any index sample.
    Get the index min size and check the value.
    It gets always wrong before.
    Reviewers: cedric, Hermet, woohyun
    Differential Revision: https://phab.enlightenment.org/D2896
    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 bb49068..ac6dea2 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);
-   edje_object_size_min_calc(wd->resize_obj, &minw, &minh);
+   evas_object_size_hint_min_get(sd->bx[sd->level], &minw, &minh);
    evas_object_size_hint_min_set(obj, minw, minh);
    evas_object_size_hint_max_set(obj, -1, -1);


Reply via email to