zmike pushed a commit to branch master.

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

commit 338e92e8d2e0278c3068817b2457b8c03755fa80
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Fri Oct 11 09:42:51 2019 -0400

    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)
      {

-- 


Reply via email to