elm/layout: do not trigger sizing eval on subobj deletion if no resize_obj set
authorMike Blumenkrantz <zmike@samsung.com>
Wed, 29 May 2019 13:16:48 +0000 (09:16 -0400)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 3 Jun 2019 06:58:34 +0000 (15:58 +0900)
Summary:
this has no effect since the resize_obj is what determines sizing

@fix
Depends on D8953

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8954

src/lib/elementary/efl_ui_layout.c

index 415bd3d..8feaf24 100644 (file)
@@ -739,7 +739,7 @@ _efl_ui_layout_base_efl_ui_widget_widget_sub_object_del(Eo *obj, Efl_Ui_Layout_D
      }
 
    // No need to resize object during destruction
-   if (!efl_invalidated_get(obj))
+   if (wd->resize_obj && (!efl_invalidated_get(obj)))
      elm_layout_sizing_eval(obj);
 
    return EINA_TRUE;