From 338e92e8d2e0278c3068817b2457b8c03755fa80 Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Fri, 11 Oct 2019 09:42:51 -0400 Subject: [PATCH] efl_ui_panes: fix not to consider content min size for legacy panes Summary: Since legacy panes did not consider its content's min size, the content's min size calculation logic is not done for legacy panes. Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10372 --- src/lib/elementary/efl_ui_panes.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/lib/elementary/efl_ui_panes.c b/src/lib/elementary/efl_ui_panes.c index ea1c9fe06a..3047fb3052 100644 --- a/src/lib/elementary/efl_ui_panes.c +++ b/src/lib/elementary/efl_ui_panes.c @@ -209,17 +209,15 @@ _efl_ui_panes_efl_canvas_group_group_calculate(Eo *obj, Efl_Ui_Panes_Data *sd) Eo *first_content, *second_content; Eina_Size2D min; + /* Legacy panes did not consider its content's min size. + * Therefore, to keep the backward compatibility, the following calculation + * is not done for legacy panes. */ + if (elm_widget_is_legacy(obj)) return; + efl_canvas_group_need_recalculate_set(obj, EINA_FALSE); - if (elm_widget_is_legacy(obj)) - { - first_content = efl_content_get(efl_part(obj, "elm.swallow.left")); - second_content = efl_content_get(efl_part(obj, "elm.swallow.right")); - } - else - { - first_content = efl_content_get(efl_part(obj, "first")); - second_content = efl_content_get(efl_part(obj, "second")); - } + + first_content = efl_content_get(efl_part(obj, "first")); + second_content = efl_content_get(efl_part(obj, "second")); if (first_content) {