Summary:
elm has some cases that resize_obj is not the group object.
That case, efl_canvas_group_need_recalculate_get() prints
annoying type-check errors.
Reviewers: #committers, SanghyeonLee
Reviewed By: #committers, SanghyeonLee
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7557
Change-Id: I76f69b9d404729d9a0d2474341e12443718baf6e
pd = eo_data_scope_get(obj, ELM_WIDGET_CLASS);
if (!pd) return;
- if (!evas_object_smart_need_recalculate_get(obj) &&
- !evas_object_smart_need_recalculate_get(pd->resize_obj))
- return;
+ if (!evas_object_smart_need_recalculate_get(obj))
+ {
+ if (!eo_isa(pd->resize_obj, EVAS_OBJECT_SMART_CLASS) ||
+ !evas_object_smart_need_recalculate_get(pd->resize_obj))
+ return;
+ }
EINA_LIST_FOREACH(pd->subobjs, l, child)
_widget_calculate_recursive(child);