elm/layout: remove check for finalize in efl_canvas_group_change impl
authorMike Blumenkrantz <zmike@samsung.com>
Fri, 20 Sep 2019 13:04:16 +0000 (09:04 -0400)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 23 Sep 2019 21:32:19 +0000 (06:32 +0900)
this used to be a thing in order to prevent widgets from spamming themselves
with recalcs during construction, but since that's no longer possible we
can remove this and also resolve an issue where legacy widgets failed
to correctly calculate their min size if no text was set

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D10043

src/lib/elementary/efl_ui_layout.c

index 5e28fda..261a47c 100644 (file)
@@ -1987,7 +1987,6 @@ _elm_layout_efl_canvas_group_change(Eo *obj, Elm_Layout_Data *ld)
 {
    Efl_Ui_Layout_Data *sd;
 
-   if (!efl_finalized_get(obj)) return;
    sd = efl_data_scope_safe_get(obj, EFL_UI_LAYOUT_BASE_CLASS);
    EINA_SAFETY_ON_NULL_RETURN(sd);
    if (sd->frozen) return;