[elm] Init fix for frame.
authorGustavo Lima Chaves <glima@profusion.mobi>
Tue, 17 Jul 2012 18:46:12 +0000 (18:46 +0000)
committerGustavo Lima Chaves <glima@profusion.mobi>
Tue, 17 Jul 2012 18:46:12 +0000 (18:46 +0000)
SVN revision: 74024

src/lib/elm_frame.c

index 94157e2..aa0d38e 100644 (file)
@@ -188,6 +188,8 @@ _elm_frame_smart_add(Evas_Object *obj)
    elm_widget_can_focus_set(obj, EINA_FALSE);
 
    elm_layout_theme_set(obj, "frame", "base", elm_widget_style_get(obj));
+
+   elm_layout_sizing_eval(obj);
 }
 
 static void
@@ -219,8 +221,6 @@ elm_frame_add(Evas_Object *parent)
    if (!elm_widget_sub_object_add(parent, obj))
      ERR("could not add %p as sub object of %p", obj, parent);
 
-   elm_layout_sizing_eval(obj);
-
    return obj;
 }