eunue pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=61381f6e3584118a70565eea79c355dd049b9e28
commit 61381f6e3584118a70565eea79c355dd049b9e28 Author: Jaeun Choi <[email protected]> Date: Tue Sep 5 17:09:37 2017 +0900 elm_panel: set content as a sub object of panel object since sd->bx is not an elm object, it is excluded from parent-child tree. in case of a non-scrollable panel, the content needs to be attached to the tree as a child of panel object directly. --- src/lib/elementary/elm_panel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/elm_panel.c b/src/lib/elementary/elm_panel.c index 71ef02df02..9b2147dc4f 100644 --- a/src/lib/elementary/elm_panel.c +++ b/src/lib/elementary/elm_panel.c @@ -796,6 +796,8 @@ _elm_panel_content_set(Eo *obj, Elm_Panel_Data *sd, const char *part, Evas_Objec evas_object_show(sd->content); if (sd->scrollable) elm_widget_sub_object_add(sd->scr_ly, sd->content); + else + elm_widget_sub_object_add(obj, sd->content); } elm_layout_sizing_eval(obj); @@ -1456,7 +1458,7 @@ _elm_panel_scrollable_set(Eo *obj, Elm_Panel_Data *sd, Eina_Bool scrollable) elm_layout_content_unset(sd->scr_ly, "elm.swallow.content"); elm_layout_content_set(obj, "elm.swallow.content", sd->bx); - if (sd->content) elm_widget_sub_object_add(sd->bx, sd->content); + if (sd->content) elm_widget_sub_object_add(obj, sd->content); } } --
