cedric pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=560338c5c31bda8912938074cb736eabdb9f1f31
commit 560338c5c31bda8912938074cb736eabdb9f1f31 Author: woochan lee <[email protected]> Date: Tue Aug 4 16:04:44 2015 +0200 index: fix index object got a wrong min value. Summary: The evas box swallowed in "elm,swallow,index" part. Then the each index item will be appended into evas_box when elm_index_go called. 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 size. 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 <[email protected]> --- 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_WIDGET_DATA_GET_OR_RETURN(obj, wd); + 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); } --
