* edje: Reverting to recalc_do in edje smart resize.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 12 Aug 2009 09:27:09 +0000 (09:27 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 12 Aug 2009 09:27:09 +0000 (09:27 +0000)
Note: A bug spotted in layout of box is the reason of this revert. From
my understanding, layout require some property on the object to be
correctly set. This is done during edje_recalc_single on the part. The
layout fonction of evas would be called just after the resize. If we
didn't do an edje_recalc_do, but an edje_recalc, the call to
edje_recalc_single will be delayed and the layout property will not be
set correctly.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@41698 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_smart.c

index 3021200..c1b6f78 100644 (file)
@@ -161,7 +161,7 @@ _edje_smart_resize(Evas_Object * obj, Evas_Coord w, Evas_Coord h)
      }
 //   evas_object_resize(ed->clipper, ed->w, ed->h);
    ed->dirty = 1;
-   _edje_recalc(ed);
+   _edje_recalc_do(ed);
    _edje_emit(ed, "resize", NULL);
 }