jaehyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e938a34f05e2869ff622495e14a0c1d41ed1fe77

commit e938a34f05e2869ff622495e14a0c1d41ed1fe77
Author: Jaehyun Cho <[email protected]>
Date:   Fri Feb 7 15:54:01 2020 +0900

    elm_index: keep backward compatibility on size calculation
    
    To keep backward compatibility on size calculation, elm_index implements
    group_calculate and the size calculation in the removed sizing_eval is
    added to the implemented group_calculate in elm_index.
---
 src/lib/elementary/elm_index.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/lib/elementary/elm_index.c b/src/lib/elementary/elm_index.c
index 00ac57c711..6a4751c6e2 100644
--- a/src/lib/elementary/elm_index.c
+++ b/src/lib/elementary/elm_index.c
@@ -516,6 +516,17 @@ _elm_index_efl_ui_widget_theme_apply(Eo *obj, 
Elm_Index_Data *sd)
    return int_ret;
 }
 
+EOLIAN static void
+_elm_index_efl_canvas_group_group_calculate(Eo *obj, Elm_Index_Data *_pd 
EINA_UNUSED)
+{
+   Evas_Coord minw = -1, minh = -1;
+   ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
+
+   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);
+}
+
 EOLIAN static void
 _elm_index_item_efl_object_destructor(Eo *eo_item EINA_UNUSED, 
Elm_Index_Item_Data *it)
 {
@@ -1693,6 +1704,7 @@ 
_elm_index_item_efl_access_widget_action_elm_actions_get(const Eo *eo_it EINA_UN
 /* Internal EO APIs and hidden overrides */
 
 #define ELM_INDEX_EXTRA_OPS \
+   EFL_CANVAS_GROUP_CALC_OPS(elm_index), \
    EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_index)
 
 #include "elm_index_item_eo.c"

-- 


Reply via email to