forked from enlightenment/efl
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
This commit is contained in:
parent
b7432f690f
commit
338e92e8d2
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue