* evas: fix bug in box vertical layout preventing object to
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Oct 2010 14:09:17 +0000 (14:09 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Oct 2010 14:09:17 +0000 (14:09 +0000)
reduce size properly.

Bug reported by Boris 'billiob' Faure <billiob@gmail.com>

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

src/lib/canvas/evas_object_box.c

index 36705a9..ce538de 100644 (file)
@@ -1072,11 +1072,12 @@ evas_object_box_layout_vertical(Evas_Object *o, Evas_Object_Box_Data *priv, void
 
         off_y = padding_t;
         new_w = child_w;
-        if (new_w > top_w) top_w = new_w;
 
         _layout_set_offset_and_expand_dimension_space_max_bounded
          (child_w, &new_w, w, max_w, &off_x, align_x, padding_l, padding_r);
 
+        if (new_w > top_w) top_w = new_w;
+
        if (new_w != child_w)
          evas_object_resize(opt->obj, new_w, child_h);
         evas_object_move(opt->obj, x + off_x, y + off_y);