summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2019-10-11 09:42:51 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-10-11 10:03:17 -0400
commit338e92e8d2e0278c3068817b2457b8c03755fa80 (patch)
treeda78598f83541c9b5ac1f1175647c8a7cd0c83e4 /src/lib/elementary
parentb7432f690f86a8c38374b813d3ca497476dbd3b6 (diff)
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
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/efl_ui_panes.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/lib/elementary/efl_ui_panes.c b/src/lib/elementary/efl_ui_panes.c
index ea1c9fe..3047fb3 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)
209 Eo *first_content, *second_content; 209 Eo *first_content, *second_content;
210 Eina_Size2D min; 210 Eina_Size2D min;
211 211
212 /* Legacy panes did not consider its content's min size.
213 * Therefore, to keep the backward compatibility, the following calculation
214 * is not done for legacy panes. */
215 if (elm_widget_is_legacy(obj)) return;
216
212 efl_canvas_group_need_recalculate_set(obj, EINA_FALSE); 217 efl_canvas_group_need_recalculate_set(obj, EINA_FALSE);
213 if (elm_widget_is_legacy(obj)) 218
214 { 219 first_content = efl_content_get(efl_part(obj, "first"));
215 first_content = efl_content_get(efl_part(obj, "elm.swallow.left")); 220 second_content = efl_content_get(efl_part(obj, "second"));
216 second_content = efl_content_get(efl_part(obj, "elm.swallow.right"));
217 }
218 else
219 {
220 first_content = efl_content_get(efl_part(obj, "first"));
221 second_content = efl_content_get(efl_part(obj, "second"));
222 }
223 221
224 if (first_content) 222 if (first_content)
225 { 223 {