efl_ui_popup_alert_text_scroll: do not calc size when need size calc flag is FALSE

Summary:
efl_ui_popup has needs_size_calc flag
to skip size calculation when it is not needed.
But efl_ui_popup_alert_text/scroll do size calc although that flag is FALSE

Test Plan:
1. elementary_test -to efl.ui.popup.alert.text
  or elementary_test -to efl.ui.popup.alert.scroll

2. resize window

3. watch _sizing_eval call

Reviewers: Jaehyun_Cho, herb, jpeg, cedric

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D5720
This commit is contained in:
JinYong Park 2018-01-04 21:12:30 +09:00 committed by Jaehyun Cho
parent e931fd698d
commit deef737067
2 changed files with 4 additions and 2 deletions

View File

@ -141,7 +141,8 @@ _efl_ui_popup_alert_scroll_efl_canvas_group_group_calculate(Eo *obj, Efl_Ui_Popu
if (ppd->needs_group_calc)
{
_sizing_eval(obj, pd);
if (ppd->needs_size_calc)
_sizing_eval(obj, pd);
//Not to calculate size by super class
ppd->needs_size_calc = EINA_FALSE;

View File

@ -159,7 +159,8 @@ _efl_ui_popup_alert_text_efl_canvas_group_group_calculate(Eo *obj, Efl_Ui_Popup_
if (ppd->needs_group_calc)
{
_sizing_eval(obj, pd);
if (ppd->needs_size_calc)
_sizing_eval(obj, pd);
//Not to calculate size by super class
ppd->needs_size_calc = EINA_FALSE;