* evas: fix bug in box vertical layout preventing object to

reduce size properly.

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


SVN revision: 53142
This commit is contained in:
Cedric BAIL 2010-10-07 14:09:17 +00:00
parent b34b4c2359
commit 2d5b568ad6
1 changed files with 2 additions and 1 deletions

View 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);