From a4b1ae93c8881e94702a270880649f2aac37335e Mon Sep 17 00:00:00 2001 From: cedric Date: Thu, 7 Oct 2010 14:09:17 +0000 Subject: [PATCH] * evas: fix bug in box vertical layout preventing object to reduce size properly. Bug reported by Boris 'billiob' Faure git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@53142 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_box.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/canvas/evas_object_box.c b/src/lib/canvas/evas_object_box.c index 36705a9..ce538de 100644 --- a/src/lib/canvas/evas_object_box.c +++ b/src/lib/canvas/evas_object_box.c @@ -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); -- 2.7.4