zmike pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=63275dfef864282170e0c30d765eddf3ee41cd27
commit 63275dfef864282170e0c30d765eddf3ee41cd27 Author: Subodh Kumar <s7158.ku...@samsung.com> Date: Mon Jul 22 09:09:00 2019 -0400 [elm] Add missing sizing eval hook at radio Summary: radio is not shown in our Tizen demo. sizing eval missing. @fix Reviewers: Hermet, bu5hm4n, cedric, zmike Reviewed By: zmike Subscribers: akanad, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9356 --- src/lib/elementary/efl_ui_radio.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_radio.c b/src/lib/elementary/efl_ui_radio.c index edbc14844f..099001fdb3 100644 --- a/src/lib/elementary/efl_ui_radio.c +++ b/src/lib/elementary/efl_ui_radio.c @@ -181,6 +181,19 @@ _efl_ui_radio_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Radio_Data *sd EINA_UNUS return int_ret; } +EOLIAN static void +_efl_ui_radio_elm_layout_sizing_eval(Eo *obj, Efl_Ui_Radio_Data *_pd EINA_UNUSED) +{ + Evas_Coord minw = -1, minh = -1; + ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); + + elm_coords_finger_size_adjust(1, &minw, 1, &minh); + edje_object_size_min_restricted_calc + (wd->resize_obj, &minw, &minh, minw, minh); + evas_object_size_hint_min_set(obj, minw, minh); + evas_object_size_hint_max_set(obj, -1, -1); +} + static void _radio_on_cb(void *data, Evas_Object *obj EINA_UNUSED, @@ -314,7 +327,8 @@ ELM_WIDGET_KEY_DOWN_DEFAULT_IMPLEMENT(efl_ui_radio, Efl_Ui_Radio_Data) ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT(MY_CLASS_PFX) #define EFL_UI_RADIO_EXTRA_OPS \ - ELM_LAYOUT_TEXT_ALIASES_OPS(MY_CLASS_PFX) + ELM_LAYOUT_TEXT_ALIASES_OPS(MY_CLASS_PFX), \ + ELM_LAYOUT_SIZING_EVAL_OPS(efl_ui_radio) #include "efl_ui_radio.eo.c" #include "efl_ui_radio_group.eo.c" --